diff --git a/amuse/map/L.Icon.Pulse.css b/amuse/map/L.Icon.Pulse.css deleted file mode 100644 index 1238884..0000000 --- a/amuse/map/L.Icon.Pulse.css +++ /dev/null @@ -1,34 +0,0 @@ -.leaflet-pulsing-icon { - border-radius: 100%; - box-shadow: 1px 1px 8px 0 rgba(0,0,0,0.75); -} - -.leaflet-pulsing-icon:after { - content: ""; - border-radius: 100%; - height: 300%; - width: 300%; - position: absolute; - margin: -100% 0 0 -100%; - -} - -@keyframes pulsate { - 0% { - transform: scale(0.1, 0.1); - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - filter: alpha(opacity=0); - } - 50% { - opacity: 1; - -ms-filter: none; - filter: none; - } - 100% { - transform: scale(1.2, 1.2); - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - filter: alpha(opacity=0); - } -} \ No newline at end of file diff --git a/amuse/map/L.Icon.Pulse.js b/amuse/map/L.Icon.Pulse.js deleted file mode 100644 index e15c99a..0000000 --- a/amuse/map/L.Icon.Pulse.js +++ /dev/null @@ -1,77 +0,0 @@ -(function(window) { - - L.Icon.Pulse = L.DivIcon.extend({ - - options: { - className: '', - iconSize: [12,12], - fillColor: 'red', - color: 'red', - animate: true, - heartbeat: 1, - }, - - initialize: function (options) { - L.setOptions(this,options); - - // css - - var uniqueClassName = 'lpi-'+ new Date().getTime()+'-'+Math.round(Math.random()*100000); - - var before = ['background-color: '+this.options.fillColor]; - var after = [ - - 'box-shadow: 0 0 6px 2px '+this.options.color, - - 'animation: pulsate ' + this.options.heartbeat + 's ease-out', - 'animation-iteration-count: infinite', - 'animation-delay: '+ (this.options.heartbeat + .1) + 's', - ]; - - if (!this.options.animate){ - after.push('animation: none'); - after.push('box-shadow:none'); - } - - var css = [ - '.'+uniqueClassName+'{'+before.join(';')+';}', - '.'+uniqueClassName+':after{'+after.join(';')+';}', - ].join(''); - - var el = document.createElement('style'); - if (el.styleSheet){ - el.styleSheet.cssText = css; - } else { - el.appendChild(document.createTextNode(css)); - } - - document.getElementsByTagName('head')[0].appendChild(el); - - // apply css class - - this.options.className = this.options.className+' leaflet-pulsing-icon '+uniqueClassName; - - // initialize icon - - L.DivIcon.prototype.initialize.call(this, options); - - } - }); - - L.icon.pulse = function (options) { - return new L.Icon.Pulse(options); - }; - - - L.Marker.Pulse = L.Marker.extend({ - initialize: function (latlng,options) { - options.icon = L.icon.pulse(options); - L.Marker.prototype.initialize.call(this, latlng, options); - } - }); - - L.marker.pulse = function (latlng,options) { - return new L.Marker.Pulse(latlng,options); - }; - -})(window); \ No newline at end of file diff --git a/amuse/map/leaflet-pulse-icon/LICENSE b/amuse/map/leaflet-pulse-icon/LICENSE deleted file mode 100644 index 75f2b06..0000000 --- a/amuse/map/leaflet-pulse-icon/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015, Filip Zavadil -All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/amuse/map/leaflet-pulse-icon/README.md b/amuse/map/leaflet-pulse-icon/README.md deleted file mode 100644 index 5f4b876..0000000 --- a/amuse/map/leaflet-pulse-icon/README.md +++ /dev/null @@ -1,43 +0,0 @@ -leaflet-pulse-icon -===================== -
- leaflet-pulse-icon -
- -A very simple [Leaflet](http://leafletjs.com) plugin provides pulsing icon. - -*Requires Leaflet 0.7.0 or newer and modern browser* - -## Demo -[Check out demo!](http://mapshakers.github.io/projects/leaflet-pulse-icon) -## Using the plugin -#### Install -`npm install @ansur/leaflet-pulse-icon`
-or clone repo & run `npm install`
-or copy files from releases - -#### Use -Include the CSS and JavaScript files located in ```\dist``` directory. -```html - - - - - - - -
- - - \ No newline at end of file diff --git a/amuse/map/leaflet-pulse-icon/example/index.js b/amuse/map/leaflet-pulse-icon/example/index.js deleted file mode 100644 index 06a2064..0000000 --- a/amuse/map/leaflet-pulse-icon/example/index.js +++ /dev/null @@ -1,15 +0,0 @@ -(function() { - var map = new L.Map('map', { - center: new L.LatLng(52.520, 13.385), - zoom: 5 - }), - layer = new L.tileLayer('http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', { - minZoom: 5, - maxZoom: 18 - }); - - map.addLayer(layer); - - var pulsingIcon = L.icon.pulse({iconSize:[20,20],color:'red'}); - var marker = L.marker([52.9167,13.9333],{icon: pulsingIcon}).addTo(map); -})(); \ No newline at end of file diff --git a/amuse/map/leaflet-pulse-icon/package.json b/amuse/map/leaflet-pulse-icon/package.json deleted file mode 100644 index 50e2055..0000000 --- a/amuse/map/leaflet-pulse-icon/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "_from": "@ansur/leaflet-pulse-icon", - "_id": "@ansur/leaflet-pulse-icon@0.1.1", - "_inBundle": false, - "_integrity": "sha512-2vymis4WMiacers0JJ43Ku0TjdKypnh0atMdFC2VdTGd5G/NGsmW5eYnTZr1YHNOts3CXRbnwlkEMKB7OPsfIg==", - "_location": "/@ansur/leaflet-pulse-icon", - "_phantomChildren": {}, - "_requested": { - "type": "tag", - "registry": true, - "raw": "@ansur/leaflet-pulse-icon", - "name": "@ansur/leaflet-pulse-icon", - "escapedName": "@ansur%2fleaflet-pulse-icon", - "scope": "@ansur", - "rawSpec": "", - "saveSpec": null, - "fetchSpec": "latest" - }, - "_requiredBy": [ - "#USER", - "/" - ], - "_resolved": "https://registry.npmjs.org/@ansur/leaflet-pulse-icon/-/leaflet-pulse-icon-0.1.1.tgz", - "_shasum": "f9ba7e51e6c81a30057df1fdf59c365944913bc1", - "_spec": "@ansur/leaflet-pulse-icon", - "_where": "/Users/kaokadaisuke", - "author": { - "name": "Filip Zavadil" - }, - "bugs": { - "url": "https://github.com/therealice/leaflet-icon-pulse/issues" - }, - "bundleDependencies": false, - "dependencies": { - "leaflet": ">=0.7.3" - }, - "deprecated": false, - "description": "A pulsing icon plugin.", - "devDependencies": {}, - "directories": { - "example": "example" - }, - "homepage": "https://github.com/therealice/leaflet-icon-pulse#readme", - "keywords": [ - "icon", - "map", - "marker", - "leaflet" - ], - "license": "MIT", - "main": "src/L.Icon.Pulse.js", - "name": "@ansur/leaflet-pulse-icon", - "repository": { - "type": "git", - "url": "git+https://github.com/therealice/leaflet-icon-pulse.git" - }, - "version": "0.1.1" -} diff --git a/amuse/map/leaflet-pulse-icon/src/L.Icon.Pulse.css b/amuse/map/leaflet-pulse-icon/src/L.Icon.Pulse.css deleted file mode 100644 index 1238884..0000000 --- a/amuse/map/leaflet-pulse-icon/src/L.Icon.Pulse.css +++ /dev/null @@ -1,34 +0,0 @@ -.leaflet-pulsing-icon { - border-radius: 100%; - box-shadow: 1px 1px 8px 0 rgba(0,0,0,0.75); -} - -.leaflet-pulsing-icon:after { - content: ""; - border-radius: 100%; - height: 300%; - width: 300%; - position: absolute; - margin: -100% 0 0 -100%; - -} - -@keyframes pulsate { - 0% { - transform: scale(0.1, 0.1); - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - filter: alpha(opacity=0); - } - 50% { - opacity: 1; - -ms-filter: none; - filter: none; - } - 100% { - transform: scale(1.2, 1.2); - opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - filter: alpha(opacity=0); - } -} \ No newline at end of file diff --git a/amuse/map/leaflet-pulse-icon/src/L.Icon.Pulse.js b/amuse/map/leaflet-pulse-icon/src/L.Icon.Pulse.js deleted file mode 100644 index e15c99a..0000000 --- a/amuse/map/leaflet-pulse-icon/src/L.Icon.Pulse.js +++ /dev/null @@ -1,77 +0,0 @@ -(function(window) { - - L.Icon.Pulse = L.DivIcon.extend({ - - options: { - className: '', - iconSize: [12,12], - fillColor: 'red', - color: 'red', - animate: true, - heartbeat: 1, - }, - - initialize: function (options) { - L.setOptions(this,options); - - // css - - var uniqueClassName = 'lpi-'+ new Date().getTime()+'-'+Math.round(Math.random()*100000); - - var before = ['background-color: '+this.options.fillColor]; - var after = [ - - 'box-shadow: 0 0 6px 2px '+this.options.color, - - 'animation: pulsate ' + this.options.heartbeat + 's ease-out', - 'animation-iteration-count: infinite', - 'animation-delay: '+ (this.options.heartbeat + .1) + 's', - ]; - - if (!this.options.animate){ - after.push('animation: none'); - after.push('box-shadow:none'); - } - - var css = [ - '.'+uniqueClassName+'{'+before.join(';')+';}', - '.'+uniqueClassName+':after{'+after.join(';')+';}', - ].join(''); - - var el = document.createElement('style'); - if (el.styleSheet){ - el.styleSheet.cssText = css; - } else { - el.appendChild(document.createTextNode(css)); - } - - document.getElementsByTagName('head')[0].appendChild(el); - - // apply css class - - this.options.className = this.options.className+' leaflet-pulsing-icon '+uniqueClassName; - - // initialize icon - - L.DivIcon.prototype.initialize.call(this, options); - - } - }); - - L.icon.pulse = function (options) { - return new L.Icon.Pulse(options); - }; - - - L.Marker.Pulse = L.Marker.extend({ - initialize: function (latlng,options) { - options.icon = L.icon.pulse(options); - L.Marker.prototype.initialize.call(this, latlng, options); - } - }); - - L.marker.pulse = function (latlng,options) { - return new L.Marker.Pulse(latlng,options); - }; - -})(window); \ No newline at end of file diff --git a/amuse/map/plugin1.css b/amuse/map/plugin1.css new file mode 100644 index 0000000..c52e357 --- /dev/null +++ b/amuse/map/plugin1.css @@ -0,0 +1,34 @@ +.leaflet-pulsing-icon { + border-radius: 100%; + box-shadow: 1px 1px 8px 0 rgba(0,0,0,0.75); +} + +.leaflet-pulsing-icon:after { + content: ""; + border-radius: 100%; + height: 300%; + width: 300%; + position: absolute; + margin: -100% 0 0 -100%; + +} + +@keyframes pulsate { + 0% { + transform: scale(0.1, 0.1); + opacity: 0; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + filter: alpha(opacity=0); + } + 50% { + opacity: 1; + -ms-filter: none; + filter: none; + } + 100% { + transform: scale(1.2, 1.2); + opacity: 0; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + filter: alpha(opacity=0); + } +} \ No newline at end of file diff --git a/amuse/map/plugin1.js b/amuse/map/plugin1.js new file mode 100644 index 0000000..1ad85b7 --- /dev/null +++ b/amuse/map/plugin1.js @@ -0,0 +1,77 @@ +(function(window) { + + L.Icon.Pulse = L.DivIcon.extend({ + + options: { + className: '', + iconSize: [12,12], + fillColor: 'red', + color: 'red', + animate: true, + heartbeat: 1, + }, + + initialize: function (options) { + L.setOptions(this,options); + + // css + + var uniqueClassName = 'lpi-'+ new Date().getTime()+'-'+Math.round(Math.random()*100000); + + var before = ['background-color: '+this.options.fillColor]; + var after = [ + + 'box-shadow: 0 0 6px 2px '+this.options.color, + + 'animation: pulsate ' + this.options.heartbeat + 's ease-out', + 'animation-iteration-count: infinite', + 'animation-delay: '+ (this.options.heartbeat + .1) + 's', + ]; + + if (!this.options.animate){ + after.push('animation: none'); + after.push('box-shadow:none'); + } + + var css = [ + '.'+uniqueClassName+'{'+before.join(';')+';}', + '.'+uniqueClassName+':after{'+after.join(';')+';}', + ].join(''); + + var el = document.createElement('style'); + if (el.styleSheet){ + el.styleSheet.cssText = css; + } else { + el.appendChild(document.createTextNode(css)); + } + + document.getElementsByTagName('head')[0].appendChild(el); + + // apply css class + + this.options.className = this.options.className+' leaflet-pulsing-icon '+uniqueClassName; + + // initialize icon + + L.DivIcon.prototype.initialize.call(this, options); + + } + }); + + L.icon.pulse = function (options) { + return new L.Icon.Pulse(options); + }; + + + L.Marker.Pulse = L.Marker.extend({ + initialize: function (latlng,options) { + options.icon = L.icon.pulse(options); + L.Marker.prototype.initialize.call(this, latlng, options); + } + }); + + L.marker.pulse = function (latlng,options) { + return new L.Marker.Pulse(latlng,options); + }; + +})(window); \ No newline at end of file diff --git a/amuse/map/tansaku.html b/amuse/map/tansaku.html index fa124ea..af45570 100644 --- a/amuse/map/tansaku.html +++ b/amuse/map/tansaku.html @@ -4,11 +4,11 @@ game map - + - +