leaflet-js 0.7.9 → 0.8.dev2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +0 -10
- data/Rakefile +3 -3
- data/leaflet-js.gemspec +7 -13
- data/lib/leaflet-js.rb +10 -2
- data/lib/leaflet.draw/BREAKINGCHANGES.md +54 -0
- data/lib/leaflet.draw/CHANGELOG.md +130 -0
- data/lib/leaflet.draw/Jakefile.js +48 -0
- data/lib/leaflet.draw/MIT-LICENCE.txt +20 -0
- data/lib/leaflet.draw/README.md +427 -0
- data/lib/leaflet.draw/TODO.md +62 -0
- data/lib/leaflet.draw/build/build.html +243 -0
- data/lib/leaflet.draw/build/build.js +187 -0
- data/lib/leaflet.draw/build/deps.js +76 -0
- data/lib/leaflet.draw/build/hintrc.js +39 -0
- data/lib/leaflet.draw/build/leaflet.draw-include.js +42 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/dist/images/spritesheet-2x.png +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/dist/images/spritesheet.png +0 -0
- data/lib/leaflet.draw/dist/leaflet.draw-src.js +2872 -0
- data/lib/leaflet.draw/dist/leaflet.draw.css +295 -0
- data/lib/leaflet.draw/dist/leaflet.draw.js +10 -0
- data/lib/leaflet.draw/examples/basic.html +113 -0
- data/lib/leaflet.draw/examples/edithandlers.html +66 -0
- data/{vendor/assets/Leaflet/dist → lib/leaflet.draw/examples/libs}/images/layers-2x.png +0 -0
- data/{vendor/assets/Leaflet/dist → lib/leaflet.draw/examples/libs}/images/layers.png +0 -0
- data/{vendor/assets/Leaflet/dist → lib/leaflet.draw/examples/libs}/images/marker-icon-2x.png +0 -0
- data/{vendor/assets/Leaflet/dist → lib/leaflet.draw/examples/libs}/images/marker-icon.png +0 -0
- data/lib/leaflet.draw/examples/libs/images/marker-icon@2x.png +0 -0
- data/{vendor/assets/Leaflet/dist → lib/leaflet.draw/examples/libs}/images/marker-shadow.png +0 -0
- data/lib/leaflet.draw/examples/libs/leaflet-src.js +9191 -0
- data/{vendor/assets/leaflet.css.erb → lib/leaflet.draw/examples/libs/leaflet.css} +2 -2
- data/lib/leaflet.draw/package.json +40 -0
- data/lib/leaflet.draw/spec/after.js +2 -0
- data/lib/leaflet.draw/spec/before.js +3 -0
- data/lib/leaflet.draw/spec/expect.js +1253 -0
- data/lib/leaflet.draw/spec/happen.js +93 -0
- data/lib/leaflet.draw/spec/index.html +38 -0
- data/lib/leaflet.draw/spec/karma.conf.js +72 -0
- data/lib/leaflet.draw/spec/sinon.js +4223 -0
- data/lib/leaflet.draw/spec/spec.hintrc.js +25 -0
- data/lib/leaflet.draw/spec/suites/DrawControlSpec.js +14 -0
- data/lib/leaflet.draw/spec/suites/GeometryUtilSpec.js +25 -0
- data/lib/leaflet.draw/spec/suites/LatLngUtilSpec.js +11 -0
- data/lib/leaflet.draw/spec/suites/SpecHelper.js +28 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/Control.Draw.js +9 -9
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/Leaflet.draw.js +1 -2
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/Toolbar.js +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/Tooltip.js +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/copyright.js +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/draw/DrawToolbar.js +0 -4
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/draw/handler/Draw.Circle.js +1 -1
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/draw/handler/Draw.Feature.js +2 -2
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/draw/handler/Draw.Marker.js +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/draw/handler/Draw.Polygon.js +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/draw/handler/Draw.Polyline.js +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/draw/handler/Draw.Rectangle.js +1 -19
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/draw/handler/Draw.SimpleShape.js +1 -7
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/edit/EditToolbar.js +2 -9
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/edit/handler/Edit.Circle.js +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/edit/handler/Edit.Poly.js +2 -14
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/edit/handler/Edit.Rectangle.js +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/edit/handler/Edit.SimpleShape.js +3 -11
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/edit/handler/EditToolbar.Delete.js +1 -4
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/edit/handler/EditToolbar.Edit.js +83 -17
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/ext/GeometryUtil.js +1 -1
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/ext/LatLngUtil.js +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/ext/LineUtil.Intersect.js +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/ext/Polygon.Intersect.js +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/ext/Polyline.Intersect.js +0 -0
- data/{vendor/assets/Leaflet.draw → lib/leaflet.draw}/src/images/spritesheet.svg +0 -0
- data/lib/leaflet.label/CHANGELOG.md +67 -0
- data/lib/leaflet.label/Jakefile.js +21 -0
- data/lib/leaflet.label/MIT-LICENCE.txt +20 -0
- data/lib/leaflet.label/README.md +103 -0
- data/lib/leaflet.label/build/build.js +155 -0
- data/lib/leaflet.label/build/deps.js +26 -0
- data/lib/leaflet.label/build/hint.js +30 -0
- data/lib/leaflet.label/build/hintrc.js +51 -0
- data/lib/leaflet.label/dist/images/death.png +0 -0
- data/lib/leaflet.label/dist/leaflet.label-src.js +542 -0
- data/{vendor/assets → lib/leaflet.label/dist}/leaflet.label.css +0 -0
- data/lib/leaflet.label/dist/leaflet.label.js +9 -0
- data/lib/leaflet.label/example/label.html +85 -0
- data/lib/leaflet.label/libs/leaflet/images/layers-2x.png +0 -0
- data/lib/leaflet.label/libs/leaflet/images/layers.png +0 -0
- data/lib/leaflet.label/libs/leaflet/images/marker-icon-2x.png +0 -0
- data/lib/leaflet.label/libs/leaflet/images/marker-icon.png +0 -0
- data/lib/leaflet.label/libs/leaflet/images/marker-icon@2x.png +0 -0
- data/lib/leaflet.label/libs/leaflet/images/marker-shadow.png +0 -0
- data/lib/leaflet.label/libs/leaflet/leaflet-src.js +9108 -0
- data/lib/leaflet.label/libs/leaflet/leaflet.css +478 -0
- data/lib/leaflet.label/libs/leaflet/leaflet.js +9 -0
- data/lib/leaflet.label/package.json +19 -0
- data/{vendor/assets/Leaflet.label → lib/leaflet.label}/src/BaseMarkerMethods.js +0 -0
- data/{vendor/assets/Leaflet.label → lib/leaflet.label}/src/CircleMarker.Label.js +0 -0
- data/{vendor/assets/Leaflet.label → lib/leaflet.label}/src/FeatureGroup.Label.js +0 -0
- data/{vendor/assets/Leaflet.label → lib/leaflet.label}/src/Label.js +2 -5
- data/{vendor/assets/Leaflet.label → lib/leaflet.label}/src/Leaflet.label.js +1 -1
- data/{vendor/assets/Leaflet.label → lib/leaflet.label}/src/Map.Label.js +0 -0
- data/{vendor/assets/Leaflet.label → lib/leaflet.label}/src/Marker.Label.js +0 -0
- data/{vendor/assets/Leaflet.label → lib/leaflet.label}/src/Path.Label.js +0 -0
- data/{vendor/assets/Leaflet.label → lib/leaflet.label}/src/copyright.js +0 -0
- data/lib/leaflet/CHANGELOG.md +1007 -0
- data/lib/leaflet/CONTRIBUTING.md +155 -0
- data/lib/leaflet/FAQ.md +138 -0
- data/lib/leaflet/Jakefile.js +56 -0
- data/lib/leaflet/LICENSE +23 -0
- data/lib/leaflet/PLUGIN-GUIDE.md +127 -0
- data/lib/leaflet/README.md +34 -0
- data/lib/leaflet/build/build.html +227 -0
- data/lib/leaflet/build/build.js +190 -0
- data/lib/leaflet/build/deps.js +258 -0
- data/lib/leaflet/build/hintrc.js +40 -0
- data/lib/leaflet/debug/css/mobile.css +6 -0
- data/lib/leaflet/debug/css/screen.css +5 -0
- data/lib/leaflet/debug/hacks/jitter.html +42 -0
- data/lib/leaflet/debug/leaflet-include.js +59 -0
- data/lib/leaflet/debug/map/canvas.html +49 -0
- data/lib/leaflet/debug/map/controls.html +49 -0
- data/lib/leaflet/debug/map/geolocation.html +34 -0
- data/lib/leaflet/debug/map/grid.html +45 -0
- data/lib/leaflet/debug/map/iframe.html +11 -0
- data/lib/leaflet/debug/map/image-overlay.html +43 -0
- data/lib/leaflet/debug/map/map-mobile.html +34 -0
- data/lib/leaflet/debug/map/map.html +61 -0
- data/lib/leaflet/debug/map/max-bounds.html +38 -0
- data/lib/leaflet/debug/map/opacity.html +223 -0
- data/lib/leaflet/debug/map/scroll.html +41 -0
- data/lib/leaflet/debug/map/simple-proj.html +59 -0
- data/lib/leaflet/debug/map/wms-marble.html +30 -0
- data/lib/leaflet/debug/map/wms.html +40 -0
- data/lib/leaflet/debug/map/zoomlevels.html +45 -0
- data/lib/leaflet/debug/tests/add_remove_layers.html +87 -0
- data/lib/leaflet/debug/tests/bringtoback.html +37 -0
- data/lib/leaflet/debug/tests/canvasloop.html +47 -0
- data/lib/leaflet/debug/tests/click_on_canvas.html +58 -0
- data/lib/leaflet/debug/tests/click_on_canvas_broken.html +49 -0
- data/lib/leaflet/debug/tests/dragging_and_copyworldjump.html +61 -0
- data/lib/leaflet/debug/tests/opacity.html +56 -0
- data/lib/leaflet/debug/tests/popupcontextmenuclicks.html +59 -0
- data/lib/leaflet/debug/tests/remove_while_dragging.html +28 -0
- data/lib/leaflet/debug/tests/removetilewhilepan.html +41 -0
- data/lib/leaflet/debug/tests/reuse_popups.html +40 -0
- data/lib/leaflet/debug/tests/rtl.html +42 -0
- data/lib/leaflet/debug/tests/rtl2.html +27 -0
- data/lib/leaflet/debug/tests/set_icon_reuse_dom.html +43 -0
- data/lib/leaflet/debug/tests/svg_clicks.html +54 -0
- data/lib/leaflet/debug/vector/bounds-extend.html +88 -0
- data/lib/leaflet/debug/vector/feature-group-bounds.html +90 -0
- data/lib/leaflet/debug/vector/geojson-sample.js +53 -0
- data/lib/leaflet/debug/vector/geojson.html +173 -0
- data/lib/leaflet/debug/vector/rectangle.html +53 -0
- data/lib/leaflet/debug/vector/route.js +1 -0
- data/lib/leaflet/debug/vector/touchzoomemu.html +194 -0
- data/lib/leaflet/debug/vector/us-states.js +54 -0
- data/lib/leaflet/debug/vector/vector-bounds.html +69 -0
- data/lib/leaflet/debug/vector/vector-canvas.html +92 -0
- data/lib/leaflet/debug/vector/vector-mobile.html +38 -0
- data/lib/leaflet/debug/vector/vector-simple.html +47 -0
- data/lib/leaflet/debug/vector/vector.html +37 -0
- data/lib/leaflet/debug/vector/vector2.html +58 -0
- data/lib/leaflet/dist/images/layers-2x.png +0 -0
- data/lib/leaflet/dist/images/layers.png +0 -0
- data/lib/leaflet/dist/images/marker-icon-2x.png +0 -0
- data/lib/leaflet/dist/images/marker-icon.png +0 -0
- data/lib/leaflet/dist/images/marker-shadow.png +0 -0
- data/lib/leaflet/dist/leaflet.css +494 -0
- data/lib/leaflet/package.json +28 -0
- data/lib/leaflet/spec/after.js +2 -0
- data/lib/leaflet/spec/expect.js +1253 -0
- data/lib/leaflet/spec/index.html +87 -0
- data/lib/leaflet/spec/karma.conf.js +68 -0
- data/lib/leaflet/spec/sinon.js +4223 -0
- data/lib/leaflet/spec/spec.hintrc.js +25 -0
- data/lib/leaflet/spec/suites/SpecHelper.js +42 -0
- data/lib/leaflet/spec/suites/control/Control.AttributionSpec.js +68 -0
- data/lib/leaflet/spec/suites/control/Control.LayersSpec.js +67 -0
- data/lib/leaflet/spec/suites/control/Control.ScaleSpec.js +6 -0
- data/lib/leaflet/spec/suites/core/ClassSpec.js +166 -0
- data/lib/leaflet/spec/suites/core/EventsSpec.js +416 -0
- data/lib/leaflet/spec/suites/core/UtilSpec.js +237 -0
- data/lib/leaflet/spec/suites/dom/DomEventSpec.js +102 -0
- data/lib/leaflet/spec/suites/dom/DomUtilSpec.js +59 -0
- data/lib/leaflet/spec/suites/dom/PosAnimationSpec.js +27 -0
- data/lib/leaflet/spec/suites/geo/CRSSpec.js +151 -0
- data/lib/leaflet/spec/suites/geo/LatLngBoundsSpec.js +144 -0
- data/lib/leaflet/spec/suites/geo/LatLngSpec.js +102 -0
- data/lib/leaflet/spec/suites/geo/ProjectionSpec.js +96 -0
- data/lib/leaflet/spec/suites/geometry/BoundsSpec.js +87 -0
- data/lib/leaflet/spec/suites/geometry/LineUtilSpec.js +75 -0
- data/lib/leaflet/spec/suites/geometry/PointSpec.js +104 -0
- data/lib/leaflet/spec/suites/geometry/PolyUtilSpec.js +27 -0
- data/lib/leaflet/spec/suites/geometry/TransformationSpec.js +31 -0
- data/lib/leaflet/spec/suites/layer/FeatureGroupSpec.js +86 -0
- data/lib/leaflet/spec/suites/layer/GeoJSONSpec.js +282 -0
- data/lib/leaflet/spec/suites/layer/LayerGroupSpec.js +71 -0
- data/lib/leaflet/spec/suites/layer/PopupSpec.js +119 -0
- data/lib/leaflet/spec/suites/layer/marker/MarkerSpec.js +117 -0
- data/lib/leaflet/spec/suites/layer/tile/GridLayerSpec.js +70 -0
- data/lib/leaflet/spec/suites/layer/tile/TileLayerSpec.js +88 -0
- data/lib/leaflet/spec/suites/layer/vector/CircleMarkerSpec.js +53 -0
- data/lib/leaflet/spec/suites/layer/vector/CircleSpec.js +18 -0
- data/lib/leaflet/spec/suites/layer/vector/PolygonSpec.js +96 -0
- data/lib/leaflet/spec/suites/layer/vector/PolylineGeometrySpec.js +35 -0
- data/lib/leaflet/spec/suites/layer/vector/PolylineSpec.js +55 -0
- data/lib/leaflet/spec/suites/map/MapSpec.js +553 -0
- data/lib/leaflet/spec/suites/map/handler/Map.DragSpec.js +38 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/Leaflet.js +16 -11
- data/{vendor/assets/Leaflet → lib/leaflet}/src/control/Control.Attribution.js +1 -23
- data/{vendor/assets/Leaflet → lib/leaflet}/src/control/Control.Layers.js +42 -57
- data/lib/leaflet/src/control/Control.Scale.js +102 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/control/Control.Zoom.js +11 -18
- data/{vendor/assets/Leaflet → lib/leaflet}/src/control/Control.js +7 -9
- data/lib/leaflet/src/copyright.js +4 -0
- data/lib/leaflet/src/core/Browser.js +65 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/core/Class.js +8 -13
- data/lib/leaflet/src/core/Events.js +226 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/core/Handler.js +0 -0
- data/lib/leaflet/src/core/Util.js +196 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/dom/DomEvent.DoubleTap.js +20 -27
- data/lib/leaflet/src/dom/DomEvent.Pointer.js +107 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/dom/DomEvent.js +70 -59
- data/lib/leaflet/src/dom/DomUtil.js +213 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/dom/Draggable.js +10 -19
- data/{vendor/assets/Leaflet → lib/leaflet}/src/dom/PosAnimation.Timer.js +0 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/dom/PosAnimation.js +4 -3
- data/lib/leaflet/src/geo/LatLng.js +67 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/geo/LatLngBounds.js +0 -0
- data/lib/leaflet/src/geo/crs/CRS.EPSG3395.js +13 -0
- data/lib/leaflet/src/geo/crs/CRS.EPSG3857.js +17 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/geo/crs/CRS.EPSG4326.js +2 -3
- data/lib/leaflet/src/geo/crs/CRS.Earth.js +19 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/geo/crs/CRS.Simple.js +10 -1
- data/lib/leaflet/src/geo/crs/CRS.js +63 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/geo/projection/Projection.LonLat.js +5 -1
- data/lib/leaflet/src/geo/projection/Projection.Mercator.js +43 -0
- data/lib/leaflet/src/geo/projection/Projection.SphericalMercator.js +31 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/geometry/Bounds.js +0 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/geometry/LineUtil.js +16 -5
- data/{vendor/assets/Leaflet → lib/leaflet}/src/geometry/Point.js +10 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/geometry/PolyUtil.js +0 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/geometry/Transformation.js +0 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/images/layers.svg +0 -0
- data/lib/leaflet/src/images/logo.svg +85 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/images/marker.svg +0 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/layer/FeatureGroup.js +3 -20
- data/lib/leaflet/src/layer/GeoJSON.js +275 -0
- data/lib/leaflet/src/layer/ImageOverlay.js +123 -0
- data/lib/leaflet/src/layer/Layer.Popup.js +87 -0
- data/lib/leaflet/src/layer/Layer.js +150 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/layer/LayerGroup.js +12 -14
- data/{vendor/assets/Leaflet → lib/leaflet}/src/layer/Popup.js +65 -83
- data/{vendor/assets/Leaflet → lib/leaflet}/src/layer/marker/DivIcon.js +3 -8
- data/{vendor/assets/Leaflet → lib/leaflet}/src/layer/marker/Icon.Default.js +6 -12
- data/{vendor/assets/Leaflet → lib/leaflet}/src/layer/marker/Icon.js +8 -25
- data/{vendor/assets/Leaflet → lib/leaflet}/src/layer/marker/Marker.Drag.js +13 -11
- data/lib/leaflet/src/layer/marker/Marker.Popup.js +16 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/layer/marker/Marker.js +52 -103
- data/lib/leaflet/src/layer/tile/GridLayer.js +536 -0
- data/lib/leaflet/src/layer/tile/TileLayer.WMS.js +79 -0
- data/lib/leaflet/src/layer/tile/TileLayer.js +148 -0
- data/lib/leaflet/src/layer/vector/Canvas.js +292 -0
- data/lib/leaflet/src/layer/vector/Circle.js +67 -0
- data/lib/leaflet/src/layer/vector/CircleMarker.js +72 -0
- data/lib/leaflet/src/layer/vector/Path.js +79 -0
- data/lib/leaflet/src/layer/vector/Polygon.js +75 -0
- data/lib/leaflet/src/layer/vector/Polyline.js +223 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/layer/vector/Rectangle.js +27 -27
- data/lib/leaflet/src/layer/vector/Renderer.js +75 -0
- data/lib/leaflet/src/layer/vector/SVG.VML.js +134 -0
- data/lib/leaflet/src/layer/vector/SVG.js +189 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/map/Map.js +83 -199
- data/{vendor/assets/Leaflet → lib/leaflet}/src/map/anim/Map.PanAnimation.js +0 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/map/anim/Map.ZoomAnimation.js +30 -38
- data/{vendor/assets/Leaflet → lib/leaflet}/src/map/ext/Map.Geolocation.js +8 -8
- data/lib/leaflet/src/map/handler/Map.BoxZoom.js +105 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/map/handler/Map.DoubleClickZoom.js +0 -0
- data/{vendor/assets/Leaflet → lib/leaflet}/src/map/handler/Map.Drag.js +12 -10
- data/{vendor/assets/Leaflet → lib/leaflet}/src/map/handler/Map.Keyboard.js +19 -17
- data/{vendor/assets/Leaflet → lib/leaflet}/src/map/handler/Map.ScrollWheelZoom.js +10 -6
- data/{vendor/assets/Leaflet → lib/leaflet}/src/map/handler/Map.Tap.js +8 -6
- data/{vendor/assets/Leaflet → lib/leaflet}/src/map/handler/Map.TouchZoom.js +16 -32
- data/vendor/assets/images/layers-2x.png +0 -0
- data/vendor/assets/images/layers.png +0 -0
- data/vendor/assets/images/marker-icon-2x.png +0 -0
- data/vendor/assets/images/marker-icon.png +0 -0
- data/vendor/assets/images/marker-shadow.png +0 -0
- data/vendor/assets/images/spritesheet-2x.png +0 -0
- data/vendor/assets/images/spritesheet.png +0 -0
- data/vendor/assets/{leaflet-js.js → javascripts/leaflet-js.js} +2 -2
- data/vendor/assets/javascripts/leaflet.draw.js +37 -0
- data/vendor/assets/javascripts/leaflet.js +149 -0
- data/vendor/assets/javascripts/leaflet.label.js +11 -0
- data/vendor/assets/{leaflet-js.css → stylesheets/leaflet-js.css} +0 -0
- data/vendor/assets/stylesheets/leaflet.css.erb +478 -0
- data/vendor/assets/{leaflet.draw.css.erb → stylesheets/leaflet.draw.css.erb} +2 -2
- data/vendor/assets/{leaflet.draw.ie.css → stylesheets/leaflet.draw.ie.css} +0 -0
- data/vendor/assets/stylesheets/leaflet.label.css +52 -0
- metadata +298 -137
- data/lib/leaflet-js/engine.rb +0 -7
- data/lib/leaflet-js/version.rb +0 -3
- data/vendor/assets/Leaflet.draw/src/edit/handler/Edit.Marker.js +0 -75
- data/vendor/assets/Leaflet/src/control/Control.Scale.js +0 -112
- data/vendor/assets/Leaflet/src/copyright.js +0 -5
- data/vendor/assets/Leaflet/src/core/Browser.js +0 -66
- data/vendor/assets/Leaflet/src/core/Events.js +0 -178
- data/vendor/assets/Leaflet/src/core/Util.js +0 -182
- data/vendor/assets/Leaflet/src/dom/DomEvent.Pointer.js +0 -156
- data/vendor/assets/Leaflet/src/dom/DomUtil.js +0 -289
- data/vendor/assets/Leaflet/src/geo/LatLng.js +0 -99
- data/vendor/assets/Leaflet/src/geo/crs/CRS.EPSG3395.js +0 -14
- data/vendor/assets/Leaflet/src/geo/crs/CRS.EPSG3857.js +0 -21
- data/vendor/assets/Leaflet/src/geo/crs/CRS.js +0 -32
- data/vendor/assets/Leaflet/src/geo/projection/Projection.Mercator.js +0 -56
- data/vendor/assets/Leaflet/src/geo/projection/Projection.SphericalMercator.js +0 -27
- data/vendor/assets/Leaflet/src/geo/projection/Projection.js +0 -5
- data/vendor/assets/Leaflet/src/layer/GeoJSON.js +0 -286
- data/vendor/assets/Leaflet/src/layer/ImageOverlay.js +0 -141
- data/vendor/assets/Leaflet/src/layer/marker/Marker.Popup.js +0 -90
- data/vendor/assets/Leaflet/src/layer/tile/TileLayer.Anim.js +0 -110
- data/vendor/assets/Leaflet/src/layer/tile/TileLayer.Canvas.js +0 -61
- data/vendor/assets/Leaflet/src/layer/tile/TileLayer.WMS.js +0 -87
- data/vendor/assets/Leaflet/src/layer/tile/TileLayer.js +0 -597
- data/vendor/assets/Leaflet/src/layer/vector/Circle.js +0 -98
- data/vendor/assets/Leaflet/src/layer/vector/CircleMarker.js +0 -45
- data/vendor/assets/Leaflet/src/layer/vector/MultiPoly.js +0 -57
- data/vendor/assets/Leaflet/src/layer/vector/Path.Popup.js +0 -65
- data/vendor/assets/Leaflet/src/layer/vector/Path.SVG.js +0 -230
- data/vendor/assets/Leaflet/src/layer/vector/Path.VML.js +0 -135
- data/vendor/assets/Leaflet/src/layer/vector/Path.js +0 -119
- data/vendor/assets/Leaflet/src/layer/vector/Polygon.js +0 -92
- data/vendor/assets/Leaflet/src/layer/vector/Polyline.js +0 -164
- data/vendor/assets/Leaflet/src/layer/vector/canvas/Circle.Canvas.js +0 -18
- data/vendor/assets/Leaflet/src/layer/vector/canvas/CircleMarker.Canvas.js +0 -9
- data/vendor/assets/Leaflet/src/layer/vector/canvas/Path.Canvas.js +0 -204
- data/vendor/assets/Leaflet/src/layer/vector/canvas/Polygon.Canvas.js +0 -37
- data/vendor/assets/Leaflet/src/layer/vector/canvas/Polyline.Canvas.js +0 -30
- data/vendor/assets/Leaflet/src/map/handler/Map.BoxZoom.js +0 -118
- data/vendor/assets/leaflet.draw.js +0 -38
- data/vendor/assets/leaflet.js +0 -155
- data/vendor/assets/leaflet.label.js +0 -11
@@ -20,18 +20,13 @@ L.DivIcon = L.Icon.extend({
|
|
20
20
|
var div = (oldIcon && oldIcon.tagName === 'DIV') ? oldIcon : document.createElement('div'),
|
21
21
|
options = this.options;
|
22
22
|
|
23
|
-
|
24
|
-
div.innerHTML = options.html;
|
25
|
-
} else {
|
26
|
-
div.innerHTML = '';
|
27
|
-
}
|
23
|
+
div.innerHTML = options.html !== false ? options.html : '';
|
28
24
|
|
29
25
|
if (options.bgPos) {
|
30
|
-
div.style.backgroundPosition =
|
31
|
-
(-options.bgPos.x) + 'px ' + (-options.bgPos.y) + 'px';
|
26
|
+
div.style.backgroundPosition = (-options.bgPos.x) + 'px ' + (-options.bgPos.y) + 'px';
|
32
27
|
}
|
33
|
-
|
34
28
|
this._setIconStyles(div, 'icon');
|
29
|
+
|
35
30
|
return div;
|
36
31
|
},
|
37
32
|
|
@@ -5,11 +5,10 @@
|
|
5
5
|
L.Icon.Default = L.Icon.extend({
|
6
6
|
|
7
7
|
options: {
|
8
|
-
iconSize:
|
9
|
-
iconAnchor:
|
8
|
+
iconSize: [25, 41],
|
9
|
+
iconAnchor: [12, 41],
|
10
10
|
popupAnchor: [1, -34],
|
11
|
-
|
12
|
-
shadowSize: [41, 41]
|
11
|
+
shadowSize: [41, 41]
|
13
12
|
},
|
14
13
|
|
15
14
|
_getIconUrl: function (name) {
|
@@ -19,17 +18,13 @@ L.Icon.Default = L.Icon.extend({
|
|
19
18
|
return this.options[key];
|
20
19
|
}
|
21
20
|
|
22
|
-
if (L.Browser.retina && name === 'icon') {
|
23
|
-
name += '-2x';
|
24
|
-
}
|
25
|
-
|
26
21
|
var path = L.Icon.Default.imagePath;
|
27
22
|
|
28
23
|
if (!path) {
|
29
24
|
throw new Error('Couldn\'t autodetect L.Icon.Default.imagePath, set it manually.');
|
30
25
|
}
|
31
26
|
|
32
|
-
return path + '/marker-' + name + '.png';
|
27
|
+
return path + '/marker-' + name + (L.Browser.retina && name === 'icon' ? '-2x' : '') + '.png';
|
33
28
|
}
|
34
29
|
});
|
35
30
|
|
@@ -37,13 +32,12 @@ L.Icon.Default.imagePath = (function () {
|
|
37
32
|
var scripts = document.getElementsByTagName('script'),
|
38
33
|
leafletRe = /[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;
|
39
34
|
|
40
|
-
var i, len, src,
|
35
|
+
var i, len, src, path;
|
41
36
|
|
42
37
|
for (i = 0, len = scripts.length; i < len; i++) {
|
43
38
|
src = scripts[i].src;
|
44
|
-
matches = src.match(leafletRe);
|
45
39
|
|
46
|
-
if (
|
40
|
+
if (src.match(leafletRe)) {
|
47
41
|
path = src.split(leafletRe)[0];
|
48
42
|
return (path ? path + '/' : '') + 'images';
|
49
43
|
}
|
@@ -3,8 +3,8 @@
|
|
3
3
|
*/
|
4
4
|
|
5
5
|
L.Icon = L.Class.extend({
|
6
|
+
/*
|
6
7
|
options: {
|
7
|
-
/*
|
8
8
|
iconUrl: (String) (required)
|
9
9
|
iconRetinaUrl: (String) (optional, used for retina devices if detected)
|
10
10
|
iconSize: (Point) (can be set through CSS)
|
@@ -14,9 +14,9 @@ L.Icon = L.Class.extend({
|
|
14
14
|
shadowRetinaUrl: (String) (optional, used for retina devices if detected)
|
15
15
|
shadowSize: (Point)
|
16
16
|
shadowAnchor: (Point)
|
17
|
-
|
18
|
-
className: ''
|
17
|
+
className: (String)
|
19
18
|
},
|
19
|
+
*/
|
20
20
|
|
21
21
|
initialize: function (options) {
|
22
22
|
L.setOptions(this, options);
|
@@ -40,12 +40,7 @@ L.Icon = L.Class.extend({
|
|
40
40
|
return null;
|
41
41
|
}
|
42
42
|
|
43
|
-
var img;
|
44
|
-
if (!oldIcon || oldIcon.tagName !== 'IMG') {
|
45
|
-
img = this._createImg(src);
|
46
|
-
} else {
|
47
|
-
img = this._createImg(src, oldIcon);
|
48
|
-
}
|
43
|
+
var img = this._createImg(src, oldIcon && oldIcon.tagName === 'IMG' ? oldIcon : null);
|
49
44
|
this._setIconStyles(img, name);
|
50
45
|
|
51
46
|
return img;
|
@@ -54,19 +49,10 @@ L.Icon = L.Class.extend({
|
|
54
49
|
_setIconStyles: function (img, name) {
|
55
50
|
var options = this.options,
|
56
51
|
size = L.point(options[name + 'Size']),
|
57
|
-
anchor
|
58
|
-
|
59
|
-
if (name === 'shadow') {
|
60
|
-
anchor = L.point(options.shadowAnchor || options.iconAnchor);
|
61
|
-
} else {
|
62
|
-
anchor = L.point(options.iconAnchor);
|
63
|
-
}
|
52
|
+
anchor = L.point(name === 'shadow' && options.shadowAnchor || options.iconAnchor ||
|
53
|
+
size && size.divideBy(2, true));
|
64
54
|
|
65
|
-
|
66
|
-
anchor = size.divideBy(2, true);
|
67
|
-
}
|
68
|
-
|
69
|
-
img.className = 'leaflet-marker-' + name + ' ' + options.className;
|
55
|
+
img.className = 'leaflet-marker-' + name + ' ' + (options.className || '');
|
70
56
|
|
71
57
|
if (anchor) {
|
72
58
|
img.style.marginLeft = (-anchor.x) + 'px';
|
@@ -86,10 +72,7 @@ L.Icon = L.Class.extend({
|
|
86
72
|
},
|
87
73
|
|
88
74
|
_getIconUrl: function (name) {
|
89
|
-
|
90
|
-
return this.options[name + 'RetinaUrl'];
|
91
|
-
}
|
92
|
-
return this.options[name + 'Url'];
|
75
|
+
return L.Browser.retina && this.options[name + 'RetinaUrl'] || this.options[name + 'Url'];
|
93
76
|
}
|
94
77
|
});
|
95
78
|
|
@@ -9,25 +9,27 @@ L.Handler.MarkerDrag = L.Handler.extend({
|
|
9
9
|
|
10
10
|
addHooks: function () {
|
11
11
|
var icon = this._marker._icon;
|
12
|
+
|
12
13
|
if (!this._draggable) {
|
13
14
|
this._draggable = new L.Draggable(icon, icon);
|
14
15
|
}
|
15
16
|
|
16
|
-
this._draggable
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
this.
|
21
|
-
|
17
|
+
this._draggable.on({
|
18
|
+
dragstart: this._onDragStart,
|
19
|
+
drag: this._onDrag,
|
20
|
+
dragend: this._onDragEnd
|
21
|
+
}, this).enable();
|
22
|
+
|
23
|
+
L.DomUtil.addClass(icon, 'leaflet-marker-draggable');
|
22
24
|
},
|
23
25
|
|
24
26
|
removeHooks: function () {
|
25
|
-
this._draggable
|
26
|
-
|
27
|
-
|
28
|
-
|
27
|
+
this._draggable.off({
|
28
|
+
dragstart: this._onDragStart,
|
29
|
+
drag: this._onDrag,
|
30
|
+
dragend: this._onDragEnd
|
31
|
+
}, this).disable();
|
29
32
|
|
30
|
-
this._draggable.disable();
|
31
33
|
L.DomUtil.removeClass(this._marker._icon, 'leaflet-marker-draggable');
|
32
34
|
},
|
33
35
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/*
|
2
|
+
* Popup extension to L.Marker, adding popup-related methods.
|
3
|
+
*/
|
4
|
+
|
5
|
+
L.Marker.include({
|
6
|
+
bindPopup: function (content, options) {
|
7
|
+
var anchor = L.point(this.options.icon.options.popupAnchor || [0, 0])
|
8
|
+
.add(L.Popup.prototype.options.offset);
|
9
|
+
|
10
|
+
options = L.extend({offset: anchor}, options);
|
11
|
+
|
12
|
+
return L.Layer.prototype.bindPopup.call(this, content, options);
|
13
|
+
},
|
14
|
+
|
15
|
+
_openPopup: L.Layer.prototype.togglePopup
|
16
|
+
});
|
@@ -2,20 +2,20 @@
|
|
2
2
|
* L.Marker is used to display clickable/draggable icons on the map.
|
3
3
|
*/
|
4
4
|
|
5
|
-
L.Marker = L.
|
6
|
-
|
7
|
-
includes: L.Mixin.Events,
|
5
|
+
L.Marker = L.Layer.extend({
|
8
6
|
|
9
7
|
options: {
|
8
|
+
pane: 'markerPane',
|
9
|
+
|
10
10
|
icon: new L.Icon.Default(),
|
11
|
-
title: '',
|
12
|
-
alt: '',
|
11
|
+
// title: '',
|
12
|
+
// alt: '',
|
13
13
|
clickable: true,
|
14
|
-
draggable: false,
|
14
|
+
// draggable: false,
|
15
15
|
keyboard: true,
|
16
16
|
zIndexOffset: 0,
|
17
17
|
opacity: 1,
|
18
|
-
riseOnHover: false,
|
18
|
+
// riseOnHover: false,
|
19
19
|
riseOffset: 250
|
20
20
|
},
|
21
21
|
|
@@ -25,40 +25,29 @@ L.Marker = L.Class.extend({
|
|
25
25
|
},
|
26
26
|
|
27
27
|
onAdd: function (map) {
|
28
|
-
this.
|
29
|
-
|
30
|
-
map.on('viewreset', this.update, this);
|
28
|
+
this._zoomAnimated = this._zoomAnimated && map.options.markerZoomAnimation;
|
31
29
|
|
32
30
|
this._initIcon();
|
33
31
|
this.update();
|
34
|
-
this.fire('add');
|
35
|
-
|
36
|
-
if (map.options.zoomAnimation && map.options.markerZoomAnimation) {
|
37
|
-
map.on('zoomanim', this._animateZoom, this);
|
38
|
-
}
|
39
32
|
},
|
40
33
|
|
41
|
-
|
42
|
-
map.addLayer(this);
|
43
|
-
return this;
|
44
|
-
},
|
45
|
-
|
46
|
-
onRemove: function (map) {
|
34
|
+
onRemove: function () {
|
47
35
|
if (this.dragging) {
|
48
36
|
this.dragging.disable();
|
49
37
|
}
|
50
38
|
|
51
39
|
this._removeIcon();
|
52
40
|
this._removeShadow();
|
41
|
+
},
|
53
42
|
|
54
|
-
|
43
|
+
getEvents: function () {
|
44
|
+
var events = {viewreset: this.update};
|
55
45
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
}, this);
|
46
|
+
if (this._zoomAnimated) {
|
47
|
+
events.zoomanim = this._animateZoom;
|
48
|
+
}
|
60
49
|
|
61
|
-
|
50
|
+
return events;
|
62
51
|
},
|
63
52
|
|
64
53
|
getLatLng: function () {
|
@@ -66,18 +55,15 @@ L.Marker = L.Class.extend({
|
|
66
55
|
},
|
67
56
|
|
68
57
|
setLatLng: function (latlng) {
|
58
|
+
var oldLatlng = this._latlng;
|
69
59
|
this._latlng = L.latLng(latlng);
|
70
|
-
|
71
60
|
this.update();
|
72
|
-
|
73
|
-
return this.fire('move', { latlng: this._latlng });
|
61
|
+
return this.fire('move', { oldLatlng: oldLatlng, latlng: this._latlng });
|
74
62
|
},
|
75
63
|
|
76
64
|
setZIndexOffset: function (offset) {
|
77
65
|
this.options.zIndexOffset = offset;
|
78
|
-
this.update();
|
79
|
-
|
80
|
-
return this;
|
66
|
+
return this.update();
|
81
67
|
},
|
82
68
|
|
83
69
|
setIcon: function (icon) {
|
@@ -97,17 +83,18 @@ L.Marker = L.Class.extend({
|
|
97
83
|
},
|
98
84
|
|
99
85
|
update: function () {
|
86
|
+
|
100
87
|
if (this._icon) {
|
101
|
-
this.
|
88
|
+
var pos = this._map.latLngToLayerPoint(this._latlng).round();
|
89
|
+
this._setPos(pos);
|
102
90
|
}
|
91
|
+
|
103
92
|
return this;
|
104
93
|
},
|
105
94
|
|
106
95
|
_initIcon: function () {
|
107
96
|
var options = this.options,
|
108
|
-
|
109
|
-
animation = (map.options.zoomAnimation && map.options.markerZoomAnimation),
|
110
|
-
classToAdd = animation ? 'leaflet-zoom-animated' : 'leaflet-zoom-hide';
|
97
|
+
classToAdd = 'leaflet-zoom-' + (this._zoomAnimated ? 'animated' : 'hide');
|
111
98
|
|
112
99
|
var icon = options.icon.createIcon(this._icon),
|
113
100
|
addIcon = false;
|
@@ -122,7 +109,6 @@ L.Marker = L.Class.extend({
|
|
122
109
|
if (options.title) {
|
123
110
|
icon.title = options.title;
|
124
111
|
}
|
125
|
-
|
126
112
|
if (options.alt) {
|
127
113
|
icon.alt = options.alt;
|
128
114
|
}
|
@@ -135,13 +121,13 @@ L.Marker = L.Class.extend({
|
|
135
121
|
}
|
136
122
|
|
137
123
|
this._icon = icon;
|
138
|
-
|
139
124
|
this._initInteraction();
|
140
125
|
|
141
126
|
if (options.riseOnHover) {
|
142
|
-
L.DomEvent
|
143
|
-
|
144
|
-
|
127
|
+
L.DomEvent.on(icon, {
|
128
|
+
mouseover: this._bringToFront,
|
129
|
+
mouseout: this._resetZIndex
|
130
|
+
}, this);
|
145
131
|
}
|
146
132
|
|
147
133
|
var newShadow = options.icon.createShadow(this._shadow),
|
@@ -163,32 +149,30 @@ L.Marker = L.Class.extend({
|
|
163
149
|
}
|
164
150
|
|
165
151
|
|
166
|
-
var panes = this._map._panes;
|
167
|
-
|
168
152
|
if (addIcon) {
|
169
|
-
|
153
|
+
this.getPane().appendChild(this._icon);
|
170
154
|
}
|
171
|
-
|
172
155
|
if (newShadow && addShadow) {
|
173
|
-
|
156
|
+
this.getPane('shadowPane').appendChild(this._shadow);
|
174
157
|
}
|
175
158
|
},
|
176
159
|
|
177
160
|
_removeIcon: function () {
|
178
161
|
if (this.options.riseOnHover) {
|
179
|
-
L.DomEvent
|
180
|
-
|
181
|
-
|
162
|
+
L.DomEvent.off(this._icon, {
|
163
|
+
mouseover: this._bringToFront,
|
164
|
+
mouseout: this._resetZIndex
|
165
|
+
}, this);
|
182
166
|
}
|
183
167
|
|
184
|
-
|
168
|
+
L.DomUtil.remove(this._icon);
|
185
169
|
|
186
170
|
this._icon = null;
|
187
171
|
},
|
188
172
|
|
189
173
|
_removeShadow: function () {
|
190
174
|
if (this._shadow) {
|
191
|
-
|
175
|
+
L.DomUtil.remove(this._shadow);
|
192
176
|
}
|
193
177
|
this._shadow = null;
|
194
178
|
},
|
@@ -219,18 +203,10 @@ L.Marker = L.Class.extend({
|
|
219
203
|
|
220
204
|
if (!this.options.clickable) { return; }
|
221
205
|
|
222
|
-
|
223
|
-
|
224
|
-
var icon = this._icon,
|
225
|
-
events = ['dblclick', 'mousedown', 'mouseover', 'mouseout', 'contextmenu'];
|
206
|
+
L.DomUtil.addClass(this._icon, 'leaflet-clickable');
|
226
207
|
|
227
|
-
L.
|
228
|
-
|
229
|
-
L.DomEvent.on(icon, 'keypress', this._onKeyPress, this);
|
230
|
-
|
231
|
-
for (var i = 0; i < events.length; i++) {
|
232
|
-
L.DomEvent.on(icon, events[i], this._fireMouseEvent, this);
|
233
|
-
}
|
208
|
+
L.DomEvent.on(this._icon, 'click dblclick mousedown mouseup mouseover mouseout contextmenu keypress',
|
209
|
+
this._fireMouseEvent, this);
|
234
210
|
|
235
211
|
if (L.Handler.MarkerDrag) {
|
236
212
|
this.dragging = new L.Handler.MarkerDrag(this);
|
@@ -241,49 +217,19 @@ L.Marker = L.Class.extend({
|
|
241
217
|
}
|
242
218
|
},
|
243
219
|
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
L.DomEvent.stopPropagation(e);
|
220
|
+
_fireMouseEvent: function (e, type) {
|
221
|
+
// to prevent outline when clicking on keyboard-focusable marker
|
222
|
+
if (e.type === 'mousedown') {
|
223
|
+
L.DomEvent.preventDefault(e);
|
249
224
|
}
|
250
225
|
|
251
|
-
if (
|
252
|
-
|
253
|
-
if ((!this.dragging || !this.dragging._enabled) && this._map.dragging && this._map.dragging.moved()) { return; }
|
254
|
-
|
255
|
-
this.fire(e.type, {
|
256
|
-
originalEvent: e,
|
257
|
-
latlng: this._latlng
|
258
|
-
});
|
259
|
-
},
|
226
|
+
if (e.type === 'click' && this.dragging && this.dragging.moved()) { return; }
|
260
227
|
|
261
|
-
|
262
|
-
|
263
|
-
this.fire('click', {
|
264
|
-
originalEvent: e,
|
265
|
-
latlng: this._latlng
|
266
|
-
});
|
228
|
+
if (e.type === 'keypress' && e.keyCode === 13) {
|
229
|
+
type = 'click';
|
267
230
|
}
|
268
|
-
},
|
269
|
-
|
270
|
-
_fireMouseEvent: function (e) {
|
271
|
-
|
272
|
-
this.fire(e.type, {
|
273
|
-
originalEvent: e,
|
274
|
-
latlng: this._latlng
|
275
|
-
});
|
276
231
|
|
277
|
-
|
278
|
-
// this line will always be called if marker is in a FeatureGroup
|
279
|
-
if (e.type === 'contextmenu' && this.hasEventListeners(e.type)) {
|
280
|
-
L.DomEvent.preventDefault(e);
|
281
|
-
}
|
282
|
-
if (e.type !== 'mousedown') {
|
283
|
-
L.DomEvent.stopPropagation(e);
|
284
|
-
} else {
|
285
|
-
L.DomEvent.preventDefault(e);
|
286
|
-
}
|
232
|
+
this._map._fireMouseEvent(this, e, type, true, this._latlng);
|
287
233
|
},
|
288
234
|
|
289
235
|
setOpacity: function (opacity) {
|
@@ -296,9 +242,12 @@ L.Marker = L.Class.extend({
|
|
296
242
|
},
|
297
243
|
|
298
244
|
_updateOpacity: function () {
|
299
|
-
|
245
|
+
var opacity = this.options.opacity;
|
246
|
+
|
247
|
+
L.DomUtil.setOpacity(this._icon, opacity);
|
248
|
+
|
300
249
|
if (this._shadow) {
|
301
|
-
L.DomUtil.setOpacity(this._shadow,
|
250
|
+
L.DomUtil.setOpacity(this._shadow, opacity);
|
302
251
|
}
|
303
252
|
},
|
304
253
|
|