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
@@ -2,9 +2,7 @@
|
|
2
2
|
* L.Map is the central class of the API - it is used to create a map.
|
3
3
|
*/
|
4
4
|
|
5
|
-
L.Map = L.
|
6
|
-
|
7
|
-
includes: L.Mixin.Events,
|
5
|
+
L.Map = L.Evented.extend({
|
8
6
|
|
9
7
|
options: {
|
10
8
|
crs: L.CRS.EPSG3857,
|
@@ -15,15 +13,14 @@ L.Map = L.Class.extend({
|
|
15
13
|
layers: Array,
|
16
14
|
*/
|
17
15
|
|
18
|
-
fadeAnimation:
|
16
|
+
fadeAnimation: true,
|
19
17
|
trackResize: true,
|
20
|
-
markerZoomAnimation:
|
18
|
+
markerZoomAnimation: true
|
21
19
|
},
|
22
20
|
|
23
21
|
initialize: function (id, options) { // (HTMLElement or String, Object)
|
24
22
|
options = L.setOptions(this, options);
|
25
23
|
|
26
|
-
|
27
24
|
this._initContainer(id);
|
28
25
|
this._initLayout();
|
29
26
|
|
@@ -41,14 +38,12 @@ L.Map = L.Class.extend({
|
|
41
38
|
}
|
42
39
|
|
43
40
|
this._handlers = [];
|
44
|
-
|
45
41
|
this._layers = {};
|
46
42
|
this._zoomBoundLayers = {};
|
47
|
-
this._tileLayersNum = 0;
|
48
43
|
|
49
44
|
this.callInitHooks();
|
50
45
|
|
51
|
-
this._addLayers(options.layers);
|
46
|
+
this._addLayers(this.options.layers);
|
52
47
|
},
|
53
48
|
|
54
49
|
|
@@ -96,16 +91,15 @@ L.Map = L.Class.extend({
|
|
96
91
|
var paddingTL = L.point(options.paddingTopLeft || options.padding || [0, 0]),
|
97
92
|
paddingBR = L.point(options.paddingBottomRight || options.padding || [0, 0]),
|
98
93
|
|
99
|
-
zoom = this.getBoundsZoom(bounds, false, paddingTL.add(paddingBR))
|
100
|
-
|
101
|
-
zoom = (options.maxZoom) ? Math.min(options.maxZoom, zoom) : zoom;
|
102
|
-
|
103
|
-
var paddingOffset = paddingBR.subtract(paddingTL).divideBy(2),
|
94
|
+
zoom = this.getBoundsZoom(bounds, false, paddingTL.add(paddingBR)),
|
95
|
+
paddingOffset = paddingBR.subtract(paddingTL).divideBy(2),
|
104
96
|
|
105
97
|
swPoint = this.project(bounds.getSouthWest(), zoom),
|
106
98
|
nePoint = this.project(bounds.getNorthEast(), zoom),
|
107
99
|
center = this.unproject(swPoint.add(nePoint).divideBy(2).add(paddingOffset), zoom);
|
108
100
|
|
101
|
+
zoom = options && options.maxZoom ? Math.min(options.maxZoom, zoom) : zoom;
|
102
|
+
|
109
103
|
return this.setView(center, zoom, options);
|
110
104
|
},
|
111
105
|
|
@@ -133,14 +127,14 @@ L.Map = L.Class.extend({
|
|
133
127
|
this.options.maxBounds = bounds;
|
134
128
|
|
135
129
|
if (!bounds) {
|
136
|
-
return this.off('moveend', this._panInsideMaxBounds
|
130
|
+
return this.off('moveend', this._panInsideMaxBounds);
|
137
131
|
}
|
138
132
|
|
139
133
|
if (this._loaded) {
|
140
134
|
this._panInsideMaxBounds();
|
141
135
|
}
|
142
136
|
|
143
|
-
return this.on('moveend', this._panInsideMaxBounds
|
137
|
+
return this.on('moveend', this._panInsideMaxBounds);
|
144
138
|
},
|
145
139
|
|
146
140
|
panInsideBounds: function (bounds, options) {
|
@@ -152,78 +146,6 @@ L.Map = L.Class.extend({
|
|
152
146
|
return this.panTo(newCenter, options);
|
153
147
|
},
|
154
148
|
|
155
|
-
addLayer: function (layer) {
|
156
|
-
// TODO method is too big, refactor
|
157
|
-
|
158
|
-
var id = L.stamp(layer);
|
159
|
-
|
160
|
-
if (this._layers[id]) { return this; }
|
161
|
-
|
162
|
-
this._layers[id] = layer;
|
163
|
-
|
164
|
-
// TODO getMaxZoom, getMinZoom in ILayer (instead of options)
|
165
|
-
if (layer.options && (!isNaN(layer.options.maxZoom) || !isNaN(layer.options.minZoom))) {
|
166
|
-
this._zoomBoundLayers[id] = layer;
|
167
|
-
this._updateZoomLevels();
|
168
|
-
}
|
169
|
-
|
170
|
-
// TODO looks ugly, refactor!!!
|
171
|
-
if (this.options.zoomAnimation && L.TileLayer && (layer instanceof L.TileLayer)) {
|
172
|
-
this._tileLayersNum++;
|
173
|
-
this._tileLayersToLoad++;
|
174
|
-
layer.on('load', this._onTileLayerLoad, this);
|
175
|
-
}
|
176
|
-
|
177
|
-
if (this._loaded) {
|
178
|
-
this._layerAdd(layer);
|
179
|
-
}
|
180
|
-
|
181
|
-
return this;
|
182
|
-
},
|
183
|
-
|
184
|
-
removeLayer: function (layer) {
|
185
|
-
var id = L.stamp(layer);
|
186
|
-
|
187
|
-
if (!this._layers[id]) { return this; }
|
188
|
-
|
189
|
-
if (this._loaded) {
|
190
|
-
layer.onRemove(this);
|
191
|
-
}
|
192
|
-
|
193
|
-
delete this._layers[id];
|
194
|
-
|
195
|
-
if (this._loaded) {
|
196
|
-
this.fire('layerremove', {layer: layer});
|
197
|
-
}
|
198
|
-
|
199
|
-
if (this._zoomBoundLayers[id]) {
|
200
|
-
delete this._zoomBoundLayers[id];
|
201
|
-
this._updateZoomLevels();
|
202
|
-
}
|
203
|
-
|
204
|
-
// TODO looks ugly, refactor
|
205
|
-
if (this.options.zoomAnimation && L.TileLayer && (layer instanceof L.TileLayer)) {
|
206
|
-
this._tileLayersNum--;
|
207
|
-
this._tileLayersToLoad--;
|
208
|
-
layer.off('load', this._onTileLayerLoad, this);
|
209
|
-
}
|
210
|
-
|
211
|
-
return this;
|
212
|
-
},
|
213
|
-
|
214
|
-
hasLayer: function (layer) {
|
215
|
-
if (!layer) { return false; }
|
216
|
-
|
217
|
-
return (L.stamp(layer) in this._layers);
|
218
|
-
},
|
219
|
-
|
220
|
-
eachLayer: function (method, context) {
|
221
|
-
for (var i in this._layers) {
|
222
|
-
method.call(context, this._layers[i]);
|
223
|
-
}
|
224
|
-
return this;
|
225
|
-
},
|
226
|
-
|
227
149
|
invalidateSize: function (options) {
|
228
150
|
if (!this._loaded) { return this; }
|
229
151
|
|
@@ -283,9 +205,6 @@ L.Map = L.Class.extend({
|
|
283
205
|
},
|
284
206
|
|
285
207
|
remove: function () {
|
286
|
-
if (this._loaded) {
|
287
|
-
this.fire('unload');
|
288
|
-
}
|
289
208
|
|
290
209
|
this._initEvents('off');
|
291
210
|
|
@@ -296,16 +215,31 @@ L.Map = L.Class.extend({
|
|
296
215
|
this._container._leaflet = undefined;
|
297
216
|
}
|
298
217
|
|
299
|
-
this.
|
218
|
+
L.DomUtil.remove(this._mapPane);
|
219
|
+
|
300
220
|
if (this._clearControlPos) {
|
301
221
|
this._clearControlPos();
|
302
222
|
}
|
303
223
|
|
304
224
|
this._clearHandlers();
|
225
|
+
|
226
|
+
if (this._loaded) {
|
227
|
+
this.fire('unload');
|
228
|
+
}
|
305
229
|
|
306
230
|
return this;
|
307
231
|
},
|
308
232
|
|
233
|
+
createPane: function (name, container) {
|
234
|
+
var className = 'leaflet-pane' + (name ? ' leaflet-' + name.replace('Pane', '') + '-pane' : ''),
|
235
|
+
pane = L.DomUtil.create('div', className, container || this._mapPane);
|
236
|
+
|
237
|
+
if (name) {
|
238
|
+
this._panes[name] = pane;
|
239
|
+
}
|
240
|
+
return pane;
|
241
|
+
},
|
242
|
+
|
309
243
|
|
310
244
|
// public methods for getting map state
|
311
245
|
|
@@ -331,9 +265,7 @@ L.Map = L.Class.extend({
|
|
331
265
|
},
|
332
266
|
|
333
267
|
getMinZoom: function () {
|
334
|
-
return this.options.minZoom === undefined ?
|
335
|
-
(this._layersMinZoom === undefined ? 0 : this._layersMinZoom) :
|
336
|
-
this.options.minZoom;
|
268
|
+
return this.options.minZoom === undefined ? this._layersMinZoom || 0 : this.options.minZoom;
|
337
269
|
},
|
338
270
|
|
339
271
|
getMaxZoom: function () {
|
@@ -392,6 +324,14 @@ L.Map = L.Class.extend({
|
|
392
324
|
return this._initialTopLeftPoint;
|
393
325
|
},
|
394
326
|
|
327
|
+
getPixelWorldBounds: function () {
|
328
|
+
return this.options.crs.getProjectedBounds(this.getZoom());
|
329
|
+
},
|
330
|
+
|
331
|
+
getPane: function (pane) {
|
332
|
+
return typeof pane === 'string' ? this._panes[pane] : pane;
|
333
|
+
},
|
334
|
+
|
395
335
|
getPanes: function () {
|
396
336
|
return this._panes;
|
397
337
|
},
|
@@ -435,6 +375,14 @@ L.Map = L.Class.extend({
|
|
435
375
|
return projectedPoint._subtract(this.getPixelOrigin());
|
436
376
|
},
|
437
377
|
|
378
|
+
wrapLatLng: function (latlng) {
|
379
|
+
return this.options.crs.wrapLatLng(L.latLng(latlng));
|
380
|
+
},
|
381
|
+
|
382
|
+
distance: function (latlng1, latlng2) {
|
383
|
+
return this.options.crs.distance(L.latLng(latlng1), L.latLng(latlng2));
|
384
|
+
},
|
385
|
+
|
438
386
|
containerPointToLayerPoint: function (point) { // (Point)
|
439
387
|
return L.point(point).subtract(this._getMapPanePos());
|
440
388
|
},
|
@@ -482,11 +430,14 @@ L.Map = L.Class.extend({
|
|
482
430
|
_initLayout: function () {
|
483
431
|
var container = this._container;
|
484
432
|
|
433
|
+
this._fadeAnimated = this.options.fadeAnimation && L.Browser.any3d;
|
434
|
+
|
485
435
|
L.DomUtil.addClass(container, 'leaflet-container' +
|
486
436
|
(L.Browser.touch ? ' leaflet-touch' : '') +
|
487
437
|
(L.Browser.retina ? ' leaflet-retina' : '') +
|
488
438
|
(L.Browser.ielt9 ? ' leaflet-oldie' : '') +
|
489
|
-
(
|
439
|
+
(L.Browser.safari ? ' leaflet-safari' : '') +
|
440
|
+
(this._fadeAnimated ? ' leaflet-fade-anim' : ''));
|
490
441
|
|
491
442
|
var position = L.DomUtil.getStyle(container, 'position');
|
492
443
|
|
@@ -504,37 +455,17 @@ L.Map = L.Class.extend({
|
|
504
455
|
_initPanes: function () {
|
505
456
|
var panes = this._panes = {};
|
506
457
|
|
507
|
-
this._mapPane =
|
458
|
+
this._mapPane = this.createPane('mapPane', this._container);
|
508
459
|
|
509
|
-
this.
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
panes.popupPane = this._createPane('leaflet-popup-pane');
|
515
|
-
|
516
|
-
var zoomHide = ' leaflet-zoom-hide';
|
460
|
+
this.createPane('tilePane');
|
461
|
+
this.createPane('shadowPane');
|
462
|
+
this.createPane('overlayPane');
|
463
|
+
this.createPane('markerPane');
|
464
|
+
this.createPane('popupPane');
|
517
465
|
|
518
466
|
if (!this.options.markerZoomAnimation) {
|
519
|
-
L.DomUtil.addClass(panes.markerPane,
|
520
|
-
L.DomUtil.addClass(panes.shadowPane,
|
521
|
-
L.DomUtil.addClass(panes.popupPane, zoomHide);
|
522
|
-
}
|
523
|
-
},
|
524
|
-
|
525
|
-
_createPane: function (className, container) {
|
526
|
-
return L.DomUtil.create('div', className, container || this._panes.objectsPane);
|
527
|
-
},
|
528
|
-
|
529
|
-
_clearPanes: function () {
|
530
|
-
this._container.removeChild(this._mapPane);
|
531
|
-
},
|
532
|
-
|
533
|
-
_addLayers: function (layers) {
|
534
|
-
layers = layers ? (L.Util.isArray(layers) ? layers : [layers]) : [];
|
535
|
-
|
536
|
-
for (var i = 0, len = layers.length; i < len; i++) {
|
537
|
-
this.addLayer(layers[i]);
|
467
|
+
L.DomUtil.addClass(panes.markerPane, 'leaflet-zoom-hide');
|
468
|
+
L.DomUtil.addClass(panes.shadowPane, 'leaflet-zoom-hide');
|
538
469
|
}
|
539
470
|
},
|
540
471
|
|
@@ -564,18 +495,15 @@ L.Map = L.Class.extend({
|
|
564
495
|
this._initialTopLeftPoint._add(this._getMapPanePos());
|
565
496
|
}
|
566
497
|
|
567
|
-
this._tileLayersToLoad = this._tileLayersNum;
|
568
|
-
|
569
498
|
var loading = !this._loaded;
|
570
499
|
this._loaded = true;
|
571
500
|
|
572
|
-
this.fire('viewreset', {hard: !preserveMapOffset});
|
573
|
-
|
574
501
|
if (loading) {
|
575
502
|
this.fire('load');
|
576
|
-
this.eachLayer(this._layerAdd, this);
|
577
503
|
}
|
578
504
|
|
505
|
+
this.fire('viewreset', {hard: !preserveMapOffset});
|
506
|
+
|
579
507
|
this.fire('move');
|
580
508
|
|
581
509
|
if (zoomChanged || afterZoomAnim) {
|
@@ -593,34 +521,6 @@ L.Map = L.Class.extend({
|
|
593
521
|
return this.getMaxZoom() - this.getMinZoom();
|
594
522
|
},
|
595
523
|
|
596
|
-
_updateZoomLevels: function () {
|
597
|
-
var i,
|
598
|
-
minZoom = Infinity,
|
599
|
-
maxZoom = -Infinity,
|
600
|
-
oldZoomSpan = this._getZoomSpan();
|
601
|
-
|
602
|
-
for (i in this._zoomBoundLayers) {
|
603
|
-
var layer = this._zoomBoundLayers[i];
|
604
|
-
if (!isNaN(layer.options.minZoom)) {
|
605
|
-
minZoom = Math.min(minZoom, layer.options.minZoom);
|
606
|
-
}
|
607
|
-
if (!isNaN(layer.options.maxZoom)) {
|
608
|
-
maxZoom = Math.max(maxZoom, layer.options.maxZoom);
|
609
|
-
}
|
610
|
-
}
|
611
|
-
|
612
|
-
if (i === undefined) { // we have no tilelayers
|
613
|
-
this._layersMaxZoom = this._layersMinZoom = undefined;
|
614
|
-
} else {
|
615
|
-
this._layersMaxZoom = maxZoom;
|
616
|
-
this._layersMinZoom = minZoom;
|
617
|
-
}
|
618
|
-
|
619
|
-
if (oldZoomSpan !== this._getZoomSpan()) {
|
620
|
-
this.fire('zoomlevelschange');
|
621
|
-
}
|
622
|
-
},
|
623
|
-
|
624
524
|
_panInsideMaxBounds: function () {
|
625
525
|
this.panInsideBounds(this.options.maxBounds);
|
626
526
|
},
|
@@ -638,15 +538,9 @@ L.Map = L.Class.extend({
|
|
638
538
|
|
639
539
|
onOff = onOff || 'on';
|
640
540
|
|
641
|
-
L.DomEvent[onOff](this._container,
|
642
|
-
|
643
|
-
|
644
|
-
'mouseleave', 'mousemove', 'contextmenu'],
|
645
|
-
i, len;
|
646
|
-
|
647
|
-
for (i = 0, len = events.length; i < len; i++) {
|
648
|
-
L.DomEvent[onOff](this._container, events[i], this._fireMouseEvent, this);
|
649
|
-
}
|
541
|
+
L.DomEvent[onOff](this._container,
|
542
|
+
'click dblclick mousedown mouseup mouseenter mouseleave mousemove contextmenu',
|
543
|
+
this._handleMouseEvent, this);
|
650
544
|
|
651
545
|
if (this.options.trackResize) {
|
652
546
|
L.DomEvent[onOff](window, 'resize', this._onResize, this);
|
@@ -659,46 +553,41 @@ L.Map = L.Class.extend({
|
|
659
553
|
function () { this.invalidateSize({debounceMoveend: true}); }, this, false, this._container);
|
660
554
|
},
|
661
555
|
|
662
|
-
|
663
|
-
if (!this._loaded
|
664
|
-
((this.dragging && this.dragging.moved()) ||
|
665
|
-
(this.boxZoom && this.boxZoom.moved()))) ||
|
666
|
-
L.DomEvent._skipped(e)) { return; }
|
556
|
+
_handleMouseEvent: function (e) {
|
557
|
+
if (!this._loaded) { return; }
|
667
558
|
|
668
|
-
this.
|
669
|
-
|
559
|
+
this._fireMouseEvent(this, e,
|
560
|
+
e.type === 'mouseenter' ? 'mouseover' :
|
561
|
+
e.type === 'mouseleave' ? 'mouseout' : e.type);
|
670
562
|
},
|
671
563
|
|
672
|
-
_fireMouseEvent: function (e) {
|
673
|
-
|
674
|
-
|
675
|
-
var type = e.type;
|
564
|
+
_fireMouseEvent: function (obj, e, type, propagate, latlng) {
|
565
|
+
type = type || e.type;
|
676
566
|
|
677
|
-
|
567
|
+
if (type === 'click') {
|
568
|
+
if (!e._simulated && ((this.dragging && this.dragging.moved()) ||
|
569
|
+
(this.boxZoom && this.boxZoom.moved()))) { return; }
|
570
|
+
obj.fire('preclick');
|
571
|
+
}
|
678
572
|
|
679
|
-
if (!
|
573
|
+
if (!obj.listens(type, propagate) || L.DomEvent._skipped(e)) { return; }
|
680
574
|
|
681
575
|
if (type === 'contextmenu') {
|
682
576
|
L.DomEvent.preventDefault(e);
|
683
577
|
}
|
578
|
+
if (type === 'click' || type === 'dblclick' || type === 'contextmenu') {
|
579
|
+
L.DomEvent.stopPropagation(e);
|
580
|
+
}
|
684
581
|
|
685
|
-
var
|
686
|
-
|
687
|
-
|
582
|
+
var data = {
|
583
|
+
originalEvent: e,
|
584
|
+
containerPoint: this.mouseEventToContainerPoint(e)
|
585
|
+
};
|
688
586
|
|
689
|
-
this.
|
690
|
-
|
691
|
-
layerPoint: layerPoint,
|
692
|
-
containerPoint: containerPoint,
|
693
|
-
originalEvent: e
|
694
|
-
});
|
695
|
-
},
|
587
|
+
data.layerPoint = this.containerPointToLayerPoint(data.containerPoint);
|
588
|
+
data.latlng = latlng || this.layerPointToLatLng(data.layerPoint);
|
696
589
|
|
697
|
-
|
698
|
-
this._tileLayersToLoad--;
|
699
|
-
if (this._tileLayersNum && !this._tileLayersToLoad) {
|
700
|
-
this.fire('tilelayersload');
|
701
|
-
}
|
590
|
+
obj.fire(type, data, propagate);
|
702
591
|
},
|
703
592
|
|
704
593
|
_clearHandlers: function () {
|
@@ -716,11 +605,6 @@ L.Map = L.Class.extend({
|
|
716
605
|
return this;
|
717
606
|
},
|
718
607
|
|
719
|
-
_layerAdd: function (layer) {
|
720
|
-
layer.onAdd(this);
|
721
|
-
this.fire('layeradd', {layer: layer});
|
722
|
-
},
|
723
|
-
|
724
608
|
|
725
609
|
// private methods for getting map state
|
726
610
|
|