leaflet-js 0.7.0.4 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +10 -3
- data/Rakefile +3 -3
- data/leaflet-js.gemspec +13 -7
- data/lib/leaflet-js.rb +2 -10
- data/lib/leaflet-js/engine.rb +7 -0
- data/lib/leaflet-js/version.rb +3 -0
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/dist/images/spritesheet-2x.png +0 -0
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/dist/images/spritesheet.png +0 -0
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/Control.Draw.js +21 -19
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/Leaflet.draw.js +8 -3
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/Toolbar.js +75 -14
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/Tooltip.js +0 -0
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/copyright.js +0 -0
- data/vendor/assets/Leaflet.draw/src/draw/DrawToolbar.js +87 -0
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/draw/handler/Draw.Circle.js +2 -3
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/draw/handler/Draw.Feature.js +4 -4
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/draw/handler/Draw.Marker.js +0 -0
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/draw/handler/Draw.Polygon.js +9 -7
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/draw/handler/Draw.Polyline.js +86 -36
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/draw/handler/Draw.Rectangle.js +19 -1
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/draw/handler/Draw.SimpleShape.js +18 -4
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/edit/EditToolbar.js +34 -43
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/edit/handler/Edit.Circle.js +0 -0
- data/vendor/assets/Leaflet.draw/src/edit/handler/Edit.Marker.js +75 -0
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/edit/handler/Edit.Poly.js +16 -2
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/edit/handler/Edit.Rectangle.js +3 -3
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/edit/handler/Edit.SimpleShape.js +13 -3
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/edit/handler/EditToolbar.Delete.js +11 -7
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/edit/handler/EditToolbar.Edit.js +26 -94
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/ext/GeometryUtil.js +3 -3
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/ext/LatLngUtil.js +0 -0
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/ext/LineUtil.Intersect.js +0 -0
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/ext/Polygon.Intersect.js +0 -0
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/ext/Polyline.Intersect.js +3 -3
- data/{lib/leaflet.draw → vendor/assets/Leaflet.draw}/src/images/spritesheet.svg +0 -0
- data/{lib/leaflet.label → vendor/assets/Leaflet.label}/src/BaseMarkerMethods.js +0 -0
- data/{lib/leaflet.label → vendor/assets/Leaflet.label}/src/CircleMarker.Label.js +0 -0
- data/{lib/leaflet.label → vendor/assets/Leaflet.label}/src/FeatureGroup.Label.js +0 -0
- data/{lib/leaflet.label → vendor/assets/Leaflet.label}/src/Label.js +5 -2
- data/{lib/leaflet.label → vendor/assets/Leaflet.label}/src/Leaflet.label.js +1 -1
- data/{lib/leaflet.label → vendor/assets/Leaflet.label}/src/Map.Label.js +0 -0
- data/{lib/leaflet.label → vendor/assets/Leaflet.label}/src/Marker.Label.js +0 -0
- data/{lib/leaflet.label → vendor/assets/Leaflet.label}/src/Path.Label.js +0 -0
- data/{lib/leaflet.label → vendor/assets/Leaflet.label}/src/copyright.js +0 -0
- data/{lib/leaflet.draw/examples/libs → vendor/assets/Leaflet/dist}/images/layers-2x.png +0 -0
- data/{lib/leaflet.draw/examples/libs → vendor/assets/Leaflet/dist}/images/layers.png +0 -0
- data/{lib/leaflet.draw/examples/libs → vendor/assets/Leaflet/dist}/images/marker-icon-2x.png +0 -0
- data/{lib/leaflet.draw/examples/libs → vendor/assets/Leaflet/dist}/images/marker-icon.png +0 -0
- data/{lib/leaflet.draw/examples/libs → vendor/assets/Leaflet/dist}/images/marker-shadow.png +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/Leaflet.js +1 -1
- data/{lib/leaflet → vendor/assets/Leaflet}/src/control/Control.Attribution.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/control/Control.Layers.js +2 -2
- data/{lib/leaflet → vendor/assets/Leaflet}/src/control/Control.Scale.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/control/Control.Zoom.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/control/Control.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/copyright.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/core/Browser.js +5 -36
- data/{lib/leaflet → vendor/assets/Leaflet}/src/core/Class.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/core/Events.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/core/Handler.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/core/Util.js +9 -14
- data/{lib/leaflet → vendor/assets/Leaflet}/src/dom/DomEvent.DoubleTap.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/dom/DomEvent.Pointer.js +3 -2
- data/{lib/leaflet → vendor/assets/Leaflet}/src/dom/DomEvent.js +7 -18
- data/{lib/leaflet → vendor/assets/Leaflet}/src/dom/DomUtil.js +0 -5
- data/{lib/leaflet → vendor/assets/Leaflet}/src/dom/Draggable.js +10 -4
- data/{lib/leaflet → vendor/assets/Leaflet}/src/dom/PosAnimation.Timer.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/dom/PosAnimation.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geo/LatLng.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geo/LatLngBounds.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geo/crs/CRS.EPSG3395.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geo/crs/CRS.EPSG3857.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geo/crs/CRS.EPSG4326.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geo/crs/CRS.Simple.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geo/crs/CRS.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geo/projection/Projection.LonLat.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geo/projection/Projection.Mercator.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geo/projection/Projection.SphericalMercator.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geo/projection/Projection.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geometry/Bounds.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geometry/LineUtil.js +1 -1
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geometry/Point.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geometry/PolyUtil.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/geometry/Transformation.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/images/layers.svg +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/images/marker.svg +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/FeatureGroup.js +5 -3
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/GeoJSON.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/ImageOverlay.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/LayerGroup.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/Popup.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/marker/DivIcon.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/marker/Icon.Default.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/marker/Icon.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/marker/Marker.Drag.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/marker/Marker.Popup.js +1 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/marker/Marker.js +2 -4
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/tile/TileLayer.Anim.js +5 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/tile/TileLayer.Canvas.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/tile/TileLayer.WMS.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/tile/TileLayer.js +3 -5
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/Circle.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/CircleMarker.js +1 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/MultiPoly.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/Path.Popup.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/Path.SVG.js +1 -1
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/Path.VML.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/Path.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/Polygon.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/Polyline.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/Rectangle.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/canvas/Circle.Canvas.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/canvas/CircleMarker.Canvas.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/canvas/Path.Canvas.js +13 -6
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/canvas/Polygon.Canvas.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/layer/vector/canvas/Polyline.Canvas.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/map/Map.js +9 -8
- data/{lib/leaflet → vendor/assets/Leaflet}/src/map/anim/Map.PanAnimation.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/map/anim/Map.ZoomAnimation.js +25 -16
- data/{lib/leaflet → vendor/assets/Leaflet}/src/map/ext/Map.Geolocation.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/map/handler/Map.BoxZoom.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/map/handler/Map.DoubleClickZoom.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/map/handler/Map.Drag.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/map/handler/Map.Keyboard.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/map/handler/Map.ScrollWheelZoom.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/map/handler/Map.Tap.js +0 -0
- data/{lib/leaflet → vendor/assets/Leaflet}/src/map/handler/Map.TouchZoom.js +1 -1
- data/vendor/assets/{stylesheets/leaflet-js.css → leaflet-js.css} +0 -0
- data/vendor/assets/{javascripts/leaflet-js.js → leaflet-js.js} +2 -2
- data/{lib/leaflet.label/libs/leaflet/leaflet.css → vendor/assets/leaflet.css.erb} +2 -2
- data/vendor/assets/{stylesheets/leaflet.draw.css.erb → leaflet.draw.css.erb} +2 -2
- data/{lib/leaflet.draw/dist → vendor/assets}/leaflet.draw.ie.css +0 -0
- data/vendor/assets/leaflet.draw.js +38 -0
- data/vendor/assets/leaflet.js +155 -0
- data/{lib/leaflet.label/dist → vendor/assets}/leaflet.label.css +0 -0
- data/vendor/assets/leaflet.label.js +11 -0
- metadata +139 -302
- data/lib/leaflet.draw/BREAKINGCHANGES.md +0 -54
- data/lib/leaflet.draw/CHANGELOG.md +0 -118
- data/lib/leaflet.draw/Jakefile.js +0 -26
- data/lib/leaflet.draw/MIT-LICENCE.txt +0 -20
- data/lib/leaflet.draw/README.md +0 -411
- data/lib/leaflet.draw/TODO.md +0 -62
- data/lib/leaflet.draw/build/build.html +0 -243
- data/lib/leaflet.draw/build/build.js +0 -189
- data/lib/leaflet.draw/build/deps.js +0 -76
- data/lib/leaflet.draw/build/hintrc.js +0 -47
- data/lib/leaflet.draw/build/leaflet.draw-include.js +0 -42
- data/lib/leaflet.draw/dist/leaflet.draw-src.js +0 -2782
- data/lib/leaflet.draw/dist/leaflet.draw.css +0 -244
- data/lib/leaflet.draw/dist/leaflet.draw.js +0 -10
- data/lib/leaflet.draw/examples/basic.html +0 -113
- data/lib/leaflet.draw/examples/edithandlers.html +0 -67
- data/lib/leaflet.draw/examples/libs/images/marker-icon@2x.png +0 -0
- data/lib/leaflet.draw/examples/libs/leaflet-src.js +0 -9108
- data/lib/leaflet.draw/examples/libs/leaflet.css +0 -478
- data/lib/leaflet.draw/package.json +0 -37
- data/lib/leaflet.draw/spec/after.js +0 -2
- data/lib/leaflet.draw/spec/before.js +0 -3
- data/lib/leaflet.draw/spec/expect.js +0 -1253
- data/lib/leaflet.draw/spec/happen.js +0 -93
- data/lib/leaflet.draw/spec/index.html +0 -36
- data/lib/leaflet.draw/spec/karma.conf.js +0 -69
- data/lib/leaflet.draw/spec/sinon.js +0 -4223
- data/lib/leaflet.draw/spec/suites/DrawControlSpec.js +0 -15
- data/lib/leaflet.draw/spec/suites/GeometryUtilSpec.js +0 -25
- data/lib/leaflet.draw/spec/suites/LatLngUtilSpec.js +0 -9
- data/lib/leaflet.draw/spec/suites/SpecHelper.js +0 -26
- data/lib/leaflet.draw/src/draw/DrawToolbar.js +0 -111
- data/lib/leaflet.label/CHANGELOG.md +0 -67
- data/lib/leaflet.label/Jakefile.js +0 -21
- data/lib/leaflet.label/MIT-LICENCE.txt +0 -20
- data/lib/leaflet.label/README.md +0 -103
- data/lib/leaflet.label/build/build.js +0 -155
- data/lib/leaflet.label/build/deps.js +0 -26
- data/lib/leaflet.label/build/hint.js +0 -30
- data/lib/leaflet.label/build/hintrc.js +0 -51
- data/lib/leaflet.label/dist/images/death.png +0 -0
- data/lib/leaflet.label/dist/leaflet.label-src.js +0 -542
- data/lib/leaflet.label/dist/leaflet.label.js +0 -9
- data/lib/leaflet.label/example/label.html +0 -85
- 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 +0 -9108
- data/lib/leaflet.label/libs/leaflet/leaflet.js +0 -9
- data/lib/leaflet.label/package.json +0 -19
- data/lib/leaflet/CHANGELOG.md +0 -905
- data/lib/leaflet/CONTRIBUTING.md +0 -155
- data/lib/leaflet/FAQ.md +0 -138
- data/lib/leaflet/Jakefile.js +0 -46
- data/lib/leaflet/LICENSE +0 -23
- data/lib/leaflet/PLUGIN-GUIDE.md +0 -127
- data/lib/leaflet/README.md +0 -34
- data/lib/leaflet/build/build.html +0 -227
- data/lib/leaflet/build/build.js +0 -163
- data/lib/leaflet/build/deps.js +0 -259
- data/lib/leaflet/build/hintrc.js +0 -39
- data/lib/leaflet/debug/css/mobile.css +0 -6
- data/lib/leaflet/debug/css/screen.css +0 -5
- data/lib/leaflet/debug/hacks/jitter.html +0 -42
- data/lib/leaflet/debug/leaflet-include.js +0 -59
- data/lib/leaflet/debug/map/canvas.html +0 -46
- data/lib/leaflet/debug/map/controls.html +0 -49
- data/lib/leaflet/debug/map/geolocation.html +0 -34
- data/lib/leaflet/debug/map/iframe.html +0 -11
- data/lib/leaflet/debug/map/image-overlay.html +0 -43
- data/lib/leaflet/debug/map/map-mobile.html +0 -34
- data/lib/leaflet/debug/map/map.html +0 -59
- data/lib/leaflet/debug/map/max-bounds.html +0 -38
- data/lib/leaflet/debug/map/opacity.html +0 -223
- data/lib/leaflet/debug/map/scroll.html +0 -41
- data/lib/leaflet/debug/map/simple-proj.html +0 -44
- data/lib/leaflet/debug/map/wms-marble.html +0 -30
- data/lib/leaflet/debug/map/wms.html +0 -40
- data/lib/leaflet/debug/map/zoomlevels.html +0 -45
- data/lib/leaflet/debug/tests/add_remove_layers.html +0 -87
- data/lib/leaflet/debug/tests/bringtoback.html +0 -37
- data/lib/leaflet/debug/tests/canvasloop.html +0 -47
- data/lib/leaflet/debug/tests/click_on_canvas.html +0 -58
- data/lib/leaflet/debug/tests/click_on_canvas_broken.html +0 -49
- data/lib/leaflet/debug/tests/dragging_and_copyworldjump.html +0 -61
- data/lib/leaflet/debug/tests/opacity.html +0 -56
- data/lib/leaflet/debug/tests/popupcontextmenuclicks.html +0 -59
- data/lib/leaflet/debug/tests/remove_while_dragging.html +0 -28
- data/lib/leaflet/debug/tests/removetilewhilepan.html +0 -41
- data/lib/leaflet/debug/tests/reuse_popups.html +0 -40
- data/lib/leaflet/debug/tests/rtl.html +0 -42
- data/lib/leaflet/debug/tests/rtl2.html +0 -27
- data/lib/leaflet/debug/tests/set_icon_reuse_dom.html +0 -43
- data/lib/leaflet/debug/tests/svg_clicks.html +0 -54
- data/lib/leaflet/debug/vector/bounds-extend.html +0 -88
- data/lib/leaflet/debug/vector/feature-group-bounds.html +0 -90
- data/lib/leaflet/debug/vector/geojson-sample.js +0 -53
- data/lib/leaflet/debug/vector/geojson.html +0 -173
- data/lib/leaflet/debug/vector/rectangle.html +0 -53
- data/lib/leaflet/debug/vector/route.js +0 -1
- data/lib/leaflet/debug/vector/touchzoomemu.html +0 -194
- data/lib/leaflet/debug/vector/us-states.js +0 -54
- data/lib/leaflet/debug/vector/vector-bounds.html +0 -69
- data/lib/leaflet/debug/vector/vector-canvas.html +0 -92
- data/lib/leaflet/debug/vector/vector-mobile.html +0 -38
- data/lib/leaflet/debug/vector/vector-simple.html +0 -48
- data/lib/leaflet/debug/vector/vector.html +0 -37
- 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 +0 -478
- data/lib/leaflet/package.json +0 -27
- data/lib/leaflet/spec/after.js +0 -2
- data/lib/leaflet/spec/before.js +0 -3
- data/lib/leaflet/spec/expect.js +0 -1253
- data/lib/leaflet/spec/index.html +0 -86
- data/lib/leaflet/spec/karma.conf.js +0 -65
- data/lib/leaflet/spec/sinon.js +0 -4223
- data/lib/leaflet/spec/spec.hintrc.js +0 -25
- data/lib/leaflet/spec/suites/LeafletSpec.js +0 -13
- data/lib/leaflet/spec/suites/SpecHelper.js +0 -42
- data/lib/leaflet/spec/suites/control/Control.AttributionSpec.js +0 -68
- data/lib/leaflet/spec/suites/control/Control.LayersSpec.js +0 -67
- data/lib/leaflet/spec/suites/control/Control.ScaleSpec.js +0 -6
- data/lib/leaflet/spec/suites/core/ClassSpec.js +0 -156
- data/lib/leaflet/spec/suites/core/EventsSpec.js +0 -392
- data/lib/leaflet/spec/suites/core/UtilSpec.js +0 -256
- data/lib/leaflet/spec/suites/dom/DomEventSpec.js +0 -102
- data/lib/leaflet/spec/suites/dom/DomUtilSpec.js +0 -82
- data/lib/leaflet/spec/suites/dom/PosAnimationSpec.js +0 -27
- data/lib/leaflet/spec/suites/geo/CRSSpec.js +0 -47
- data/lib/leaflet/spec/suites/geo/LatLngBoundsSpec.js +0 -144
- data/lib/leaflet/spec/suites/geo/LatLngSpec.js +0 -132
- data/lib/leaflet/spec/suites/geo/ProjectionSpec.js +0 -48
- data/lib/leaflet/spec/suites/geometry/BoundsSpec.js +0 -87
- data/lib/leaflet/spec/suites/geometry/LineUtilSpec.js +0 -75
- data/lib/leaflet/spec/suites/geometry/PointSpec.js +0 -104
- data/lib/leaflet/spec/suites/geometry/PolyUtilSpec.js +0 -27
- data/lib/leaflet/spec/suites/geometry/TransformationSpec.js +0 -31
- data/lib/leaflet/spec/suites/layer/FeatureGroupSpec.js +0 -86
- data/lib/leaflet/spec/suites/layer/GeoJSONSpec.js +0 -282
- data/lib/leaflet/spec/suites/layer/LayerGroupSpec.js +0 -58
- data/lib/leaflet/spec/suites/layer/PopupSpec.js +0 -119
- data/lib/leaflet/spec/suites/layer/TileLayerSpec.js +0 -88
- data/lib/leaflet/spec/suites/layer/marker/MarkerSpec.js +0 -94
- data/lib/leaflet/spec/suites/layer/vector/CircleMarkerSpec.js +0 -53
- data/lib/leaflet/spec/suites/layer/vector/CircleSpec.js +0 -17
- data/lib/leaflet/spec/suites/layer/vector/PolygonSpec.js +0 -91
- data/lib/leaflet/spec/suites/layer/vector/PolylineGeometrySpec.js +0 -35
- data/lib/leaflet/spec/suites/layer/vector/PolylineSpec.js +0 -55
- data/lib/leaflet/spec/suites/map/MapSpec.js +0 -536
- data/lib/leaflet/spec/suites/map/handler/Map.DragSpec.js +0 -38
- 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/javascripts/leaflet.draw.js +0 -37
- data/vendor/assets/javascripts/leaflet.js +0 -147
- data/vendor/assets/javascripts/leaflet.label.js +0 -11
- data/vendor/assets/stylesheets/leaflet.css.erb +0 -478
- data/vendor/assets/stylesheets/leaflet.draw.ie.css +0 -49
- data/vendor/assets/stylesheets/leaflet.label.css +0 -52
File without changes
|
@@ -0,0 +1,75 @@
|
|
1
|
+
L.Edit = L.Edit || {};
|
2
|
+
|
3
|
+
L.Edit.Marker = L.Handler.extend({
|
4
|
+
initialize: function (marker, options) {
|
5
|
+
this._marker = marker;
|
6
|
+
L.setOptions(this, options);
|
7
|
+
},
|
8
|
+
|
9
|
+
addHooks: function () {
|
10
|
+
var marker = this._marker;
|
11
|
+
|
12
|
+
marker.dragging.enable();
|
13
|
+
marker.on('dragend', this._onDragEnd, marker);
|
14
|
+
this._toggleMarkerHighlight();
|
15
|
+
},
|
16
|
+
|
17
|
+
removeHooks: function () {
|
18
|
+
var marker = this._marker;
|
19
|
+
|
20
|
+
marker.dragging.disable();
|
21
|
+
marker.off('dragend', this._onDragEnd, marker);
|
22
|
+
this._toggleMarkerHighlight();
|
23
|
+
},
|
24
|
+
|
25
|
+
_onDragEnd: function (e) {
|
26
|
+
var layer = e.target;
|
27
|
+
layer.edited = true;
|
28
|
+
},
|
29
|
+
|
30
|
+
_toggleMarkerHighlight: function () {
|
31
|
+
|
32
|
+
// Don't do anything if this layer is a marker but doesn't have an icon. Markers
|
33
|
+
// should usually have icons. If using Leaflet.draw with Leafler.markercluster there
|
34
|
+
// is a chance that a marker doesn't.
|
35
|
+
if (!this._icon) {
|
36
|
+
return;
|
37
|
+
}
|
38
|
+
|
39
|
+
// This is quite naughty, but I don't see another way of doing it. (short of setting a new icon)
|
40
|
+
var icon = this._icon;
|
41
|
+
|
42
|
+
icon.style.display = 'none';
|
43
|
+
|
44
|
+
if (L.DomUtil.hasClass(icon, 'leaflet-edit-marker-selected')) {
|
45
|
+
L.DomUtil.removeClass(icon, 'leaflet-edit-marker-selected');
|
46
|
+
// Offset as the border will make the icon move.
|
47
|
+
this._offsetMarker(icon, -4);
|
48
|
+
|
49
|
+
} else {
|
50
|
+
L.DomUtil.addClass(icon, 'leaflet-edit-marker-selected');
|
51
|
+
// Offset as the border will make the icon move.
|
52
|
+
this._offsetMarker(icon, 4);
|
53
|
+
}
|
54
|
+
|
55
|
+
icon.style.display = '';
|
56
|
+
},
|
57
|
+
|
58
|
+
_offsetMarker: function (icon, offset) {
|
59
|
+
var iconMarginTop = parseInt(icon.style.marginTop, 10) - offset,
|
60
|
+
iconMarginLeft = parseInt(icon.style.marginLeft, 10) - offset;
|
61
|
+
|
62
|
+
icon.style.marginTop = iconMarginTop + 'px';
|
63
|
+
icon.style.marginLeft = iconMarginLeft + 'px';
|
64
|
+
}
|
65
|
+
});
|
66
|
+
|
67
|
+
L.Marker.addInitHook(function () {
|
68
|
+
if (L.Edit.Marker) {
|
69
|
+
this.editing = new L.Edit.Marker(this);
|
70
|
+
|
71
|
+
if (this.options.editable) {
|
72
|
+
this.editing.enable();
|
73
|
+
}
|
74
|
+
}
|
75
|
+
});
|
@@ -18,6 +18,14 @@ L.Edit.Poly = L.Handler.extend({
|
|
18
18
|
},
|
19
19
|
|
20
20
|
addHooks: function () {
|
21
|
+
var poly = this._poly;
|
22
|
+
|
23
|
+
if (!(poly instanceof L.Polygon)) {
|
24
|
+
poly.options.editing.fill = false;
|
25
|
+
}
|
26
|
+
|
27
|
+
poly.setStyle(poly.options.editing);
|
28
|
+
|
21
29
|
if (this._poly._map) {
|
22
30
|
if (!this._markerGroup) {
|
23
31
|
this._initMarkers();
|
@@ -27,8 +35,12 @@ L.Edit.Poly = L.Handler.extend({
|
|
27
35
|
},
|
28
36
|
|
29
37
|
removeHooks: function () {
|
30
|
-
|
31
|
-
|
38
|
+
var poly = this._poly;
|
39
|
+
|
40
|
+
poly.setStyle(poly.options.original);
|
41
|
+
|
42
|
+
if (poly._map) {
|
43
|
+
poly._map.removeLayer(this._markerGroup);
|
32
44
|
delete this._markerGroup;
|
33
45
|
delete this._markers;
|
34
46
|
}
|
@@ -199,6 +211,8 @@ L.Edit.Poly = L.Handler.extend({
|
|
199
211
|
marker2._index++;
|
200
212
|
this._updatePrevNext(marker1, marker);
|
201
213
|
this._updatePrevNext(marker, marker2);
|
214
|
+
|
215
|
+
this._poly.fire('editstart');
|
202
216
|
};
|
203
217
|
|
204
218
|
onDragEnd = function () {
|
@@ -66,7 +66,7 @@ L.Edit.Rectangle = L.Edit.SimpleShape.extend({
|
|
66
66
|
|
67
67
|
this._shape.setLatLngs(newLatLngs);
|
68
68
|
|
69
|
-
//
|
69
|
+
// Reposition the resize markers
|
70
70
|
this._repositionCornerMarkers();
|
71
71
|
},
|
72
72
|
|
@@ -76,7 +76,7 @@ L.Edit.Rectangle = L.Edit.SimpleShape.extend({
|
|
76
76
|
// Update the shape based on the current position of this corner and the opposite point
|
77
77
|
this._shape.setBounds(L.latLngBounds(latlng, this._oppositeCorner));
|
78
78
|
|
79
|
-
//
|
79
|
+
// Reposition the move marker
|
80
80
|
bounds = this._shape.getBounds();
|
81
81
|
this._moveMarker.setLatLng(bounds.getCenter());
|
82
82
|
},
|
@@ -114,4 +114,4 @@ L.Rectangle.addInitHook(function () {
|
|
114
114
|
this.editing.enable();
|
115
115
|
}
|
116
116
|
}
|
117
|
-
});
|
117
|
+
});
|
@@ -18,8 +18,12 @@ L.Edit.SimpleShape = L.Handler.extend({
|
|
18
18
|
},
|
19
19
|
|
20
20
|
addHooks: function () {
|
21
|
-
|
22
|
-
|
21
|
+
var shape = this._shape;
|
22
|
+
|
23
|
+
shape.setStyle(shape.options.editing);
|
24
|
+
|
25
|
+
if (shape._map) {
|
26
|
+
this._map = shape._map;
|
23
27
|
|
24
28
|
if (!this._markerGroup) {
|
25
29
|
this._initMarkers();
|
@@ -29,7 +33,11 @@ L.Edit.SimpleShape = L.Handler.extend({
|
|
29
33
|
},
|
30
34
|
|
31
35
|
removeHooks: function () {
|
32
|
-
|
36
|
+
var shape = this._shape;
|
37
|
+
|
38
|
+
shape.setStyle(shape.options.original);
|
39
|
+
|
40
|
+
if (shape._map) {
|
33
41
|
this._unbindMarker(this._moveMarker);
|
34
42
|
|
35
43
|
for (var i = 0, l = this._resizeMarkers.length; i < l; i++) {
|
@@ -100,6 +108,8 @@ L.Edit.SimpleShape = L.Handler.extend({
|
|
100
108
|
_onMarkerDragStart: function (e) {
|
101
109
|
var marker = e.target;
|
102
110
|
marker.setOpacity(0);
|
111
|
+
|
112
|
+
this._shape.fire('editstart');
|
103
113
|
},
|
104
114
|
|
105
115
|
_fireEdit: function () {
|
@@ -25,28 +25,29 @@ L.EditToolbar.Delete = L.Handler.extend({
|
|
25
25
|
if (this._enabled || !this._hasAvailableLayers()) {
|
26
26
|
return;
|
27
27
|
}
|
28
|
+
this.fire('enabled', { handler: this.type});
|
29
|
+
|
30
|
+
this._map.fire('draw:deletestart', { handler: this.type });
|
28
31
|
|
29
32
|
L.Handler.prototype.enable.call(this);
|
30
33
|
|
31
34
|
this._deletableLayers
|
32
35
|
.on('layeradd', this._enableLayerDelete, this)
|
33
36
|
.on('layerremove', this._disableLayerDelete, this);
|
34
|
-
|
35
|
-
this.fire('enabled', { handler: this.type});
|
36
|
-
this._map.fire('draw:editstart', { handler: this.type });
|
37
37
|
},
|
38
38
|
|
39
39
|
disable: function () {
|
40
40
|
if (!this._enabled) { return; }
|
41
41
|
|
42
|
-
L.Handler.prototype.disable.call(this);
|
43
|
-
|
44
42
|
this._deletableLayers
|
45
43
|
.off('layeradd', this._enableLayerDelete, this)
|
46
44
|
.off('layerremove', this._disableLayerDelete, this);
|
47
45
|
|
46
|
+
L.Handler.prototype.disable.call(this);
|
47
|
+
|
48
|
+
this._map.fire('draw:deletestop', { handler: this.type });
|
49
|
+
|
48
50
|
this.fire('disabled', { handler: this.type});
|
49
|
-
this._map.fire('draw:editstop', { handler: this.type });
|
50
51
|
},
|
51
52
|
|
52
53
|
addHooks: function () {
|
@@ -56,7 +57,7 @@ L.EditToolbar.Delete = L.Handler.extend({
|
|
56
57
|
map.getContainer().focus();
|
57
58
|
|
58
59
|
this._deletableLayers.eachLayer(this._enableLayerDelete, this);
|
59
|
-
this._deletedLayers = new L.
|
60
|
+
this._deletedLayers = new L.LayerGroup();
|
60
61
|
|
61
62
|
this._tooltip = new L.Tooltip(this._map);
|
62
63
|
this._tooltip.updateContent({ text: L.drawLocal.edit.handlers.remove.tooltip.text });
|
@@ -81,6 +82,7 @@ L.EditToolbar.Delete = L.Handler.extend({
|
|
81
82
|
// Iterate of the deleted layers and add them back into the featureGroup
|
82
83
|
this._deletedLayers.eachLayer(function (layer) {
|
83
84
|
this._deletableLayers.addLayer(layer);
|
85
|
+
layer.fire('revert-deleted', { layer: layer });
|
84
86
|
}, this);
|
85
87
|
},
|
86
88
|
|
@@ -109,6 +111,8 @@ L.EditToolbar.Delete = L.Handler.extend({
|
|
109
111
|
this._deletableLayers.removeLayer(layer);
|
110
112
|
|
111
113
|
this._deletedLayers.addLayer(layer);
|
114
|
+
|
115
|
+
layer.fire('deleted');
|
112
116
|
},
|
113
117
|
|
114
118
|
_onMouseMove: function (e) {
|
@@ -8,8 +8,7 @@ L.EditToolbar.Edit = L.Handler.extend({
|
|
8
8
|
initialize: function (map, options) {
|
9
9
|
L.Handler.prototype.initialize.call(this, map);
|
10
10
|
|
11
|
-
|
12
|
-
this._selectedPathOptions = options.selectedPathOptions;
|
11
|
+
L.setOptions(this, options);
|
13
12
|
|
14
13
|
// Store the selectable layer group for ease of access
|
15
14
|
this._featureGroup = options.featureGroup;
|
@@ -28,28 +27,26 @@ L.EditToolbar.Edit = L.Handler.extend({
|
|
28
27
|
if (this._enabled || !this._hasAvailableLayers()) {
|
29
28
|
return;
|
30
29
|
}
|
30
|
+
this.fire('enabled', {handler: this.type});
|
31
|
+
//this disable other handlers
|
31
32
|
|
32
|
-
|
33
|
+
this._map.fire('draw:editstart', { handler: this.type });
|
34
|
+
//allow drawLayer to be updated before beginning edition.
|
33
35
|
|
36
|
+
L.Handler.prototype.enable.call(this);
|
34
37
|
this._featureGroup
|
35
38
|
.on('layeradd', this._enableLayerEdit, this)
|
36
39
|
.on('layerremove', this._disableLayerEdit, this);
|
37
|
-
|
38
|
-
this.fire('enabled', {handler: this.type});
|
39
|
-
this._map.fire('draw:editstart', { handler: this.type });
|
40
40
|
},
|
41
41
|
|
42
42
|
disable: function () {
|
43
43
|
if (!this._enabled) { return; }
|
44
|
-
|
45
|
-
this.fire('disabled', {handler: this.type});
|
46
|
-
this._map.fire('draw:editstop', { handler: this.type });
|
47
|
-
|
48
44
|
this._featureGroup
|
49
45
|
.off('layeradd', this._enableLayerEdit, this)
|
50
46
|
.off('layerremove', this._disableLayerEdit, this);
|
51
|
-
|
52
47
|
L.Handler.prototype.disable.call(this);
|
48
|
+
this._map.fire('draw:editstop', { handler: this.type });
|
49
|
+
this.fire('disabled', {handler: this.type});
|
53
50
|
},
|
54
51
|
|
55
52
|
addHooks: function () {
|
@@ -116,7 +113,7 @@ L.EditToolbar.Edit = L.Handler.extend({
|
|
116
113
|
latlng: L.LatLngUtil.cloneLatLng(layer.getLatLng()),
|
117
114
|
radius: layer.getRadius()
|
118
115
|
};
|
119
|
-
} else { // Marker
|
116
|
+
} else if (layer instanceof L.Marker) { // Marker
|
120
117
|
this._uneditedLayerProps[id] = {
|
121
118
|
latlng: L.LatLngUtil.cloneLatLng(layer.getLatLng())
|
122
119
|
};
|
@@ -134,111 +131,46 @@ L.EditToolbar.Edit = L.Handler.extend({
|
|
134
131
|
} else if (layer instanceof L.Circle) {
|
135
132
|
layer.setLatLng(this._uneditedLayerProps[id].latlng);
|
136
133
|
layer.setRadius(this._uneditedLayerProps[id].radius);
|
137
|
-
} else { // Marker
|
134
|
+
} else if (layer instanceof L.Marker) { // Marker
|
138
135
|
layer.setLatLng(this._uneditedLayerProps[id].latlng);
|
139
136
|
}
|
140
|
-
}
|
141
|
-
},
|
142
137
|
|
143
|
-
|
144
|
-
if (!marker._icon) {
|
145
|
-
return;
|
138
|
+
layer.fire('revert-edited', { layer: layer });
|
146
139
|
}
|
147
|
-
// This is quite naughty, but I don't see another way of doing it. (short of setting a new icon)
|
148
|
-
var icon = marker._icon;
|
149
|
-
|
150
|
-
icon.style.display = 'none';
|
151
|
-
|
152
|
-
if (L.DomUtil.hasClass(icon, 'leaflet-edit-marker-selected')) {
|
153
|
-
L.DomUtil.removeClass(icon, 'leaflet-edit-marker-selected');
|
154
|
-
// Offset as the border will make the icon move.
|
155
|
-
this._offsetMarker(icon, -4);
|
156
|
-
|
157
|
-
} else {
|
158
|
-
L.DomUtil.addClass(icon, 'leaflet-edit-marker-selected');
|
159
|
-
// Offset as the border will make the icon move.
|
160
|
-
this._offsetMarker(icon, 4);
|
161
|
-
}
|
162
|
-
|
163
|
-
icon.style.display = '';
|
164
|
-
},
|
165
|
-
|
166
|
-
_offsetMarker: function (icon, offset) {
|
167
|
-
var iconMarginTop = parseInt(icon.style.marginTop, 10) - offset,
|
168
|
-
iconMarginLeft = parseInt(icon.style.marginLeft, 10) - offset;
|
169
|
-
|
170
|
-
icon.style.marginTop = iconMarginTop + 'px';
|
171
|
-
icon.style.marginLeft = iconMarginLeft + 'px';
|
172
140
|
},
|
173
141
|
|
174
142
|
_enableLayerEdit: function (e) {
|
175
143
|
var layer = e.layer || e.target || e,
|
176
|
-
isMarker = layer instanceof L.Marker,
|
177
144
|
pathOptions;
|
178
145
|
|
179
|
-
// Don't do anything if this layer is a marker but doesn't have an icon. Markers
|
180
|
-
// should usually have icons. If using Leaflet.draw with Leafler.markercluster there
|
181
|
-
// is a chance that a marker doesn't.
|
182
|
-
if (isMarker && !layer._icon) {
|
183
|
-
return;
|
184
|
-
}
|
185
|
-
|
186
146
|
// Back up this layer (if haven't before)
|
187
147
|
this._backupLayer(layer);
|
188
148
|
|
189
|
-
//
|
190
|
-
if (this.
|
191
|
-
pathOptions = L.Util.extend({}, this.
|
192
|
-
|
193
|
-
if (isMarker) {
|
194
|
-
this._toggleMarkerHighlight(layer);
|
195
|
-
} else {
|
196
|
-
layer.options.previousOptions = layer.options;
|
197
|
-
|
198
|
-
// Make sure that Polylines are not filled
|
199
|
-
if (!(layer instanceof L.Circle) && !(layer instanceof L.Polygon) && !(layer instanceof L.Rectangle)) {
|
200
|
-
pathOptions.fill = false;
|
201
|
-
}
|
149
|
+
// Set different style for editing mode
|
150
|
+
if (this.options.selectedPathOptions) {
|
151
|
+
pathOptions = L.Util.extend({}, this.options.selectedPathOptions);
|
202
152
|
|
203
|
-
|
153
|
+
// Use the existing color of the layer
|
154
|
+
if (pathOptions.maintainColor) {
|
155
|
+
pathOptions.color = layer.options.color;
|
156
|
+
pathOptions.fillColor = layer.options.fillColor;
|
204
157
|
}
|
205
|
-
}
|
206
158
|
|
207
|
-
|
208
|
-
layer.
|
209
|
-
layer.on('dragend', this._onMarkerDragEnd);
|
210
|
-
} else {
|
211
|
-
layer.editing.enable();
|
159
|
+
layer.options.original = L.extend({}, layer.options);
|
160
|
+
layer.options.editing = pathOptions;
|
212
161
|
}
|
162
|
+
|
163
|
+
layer.editing.enable();
|
213
164
|
},
|
214
165
|
|
215
166
|
_disableLayerEdit: function (e) {
|
216
167
|
var layer = e.layer || e.target || e;
|
217
|
-
layer.edited = false;
|
218
168
|
|
219
|
-
|
220
|
-
|
221
|
-
if (layer instanceof L.Marker) {
|
222
|
-
this._toggleMarkerHighlight(layer);
|
223
|
-
} else {
|
224
|
-
// reset the layer style to what is was before being selected
|
225
|
-
layer.setStyle(layer.options.previousOptions);
|
226
|
-
// remove the cached options for the layer object
|
227
|
-
delete layer.options.previousOptions;
|
228
|
-
}
|
229
|
-
}
|
230
|
-
|
231
|
-
if (layer instanceof L.Marker) {
|
232
|
-
layer.dragging.disable();
|
233
|
-
layer.off('dragend', this._onMarkerDragEnd, this);
|
234
|
-
} else {
|
235
|
-
layer.editing.disable();
|
236
|
-
}
|
237
|
-
},
|
169
|
+
layer.edited = false;
|
170
|
+
layer.editing.disable();
|
238
171
|
|
239
|
-
|
240
|
-
|
241
|
-
layer.edited = true;
|
172
|
+
delete layer.options.editing;
|
173
|
+
delete layer.options.original;
|
242
174
|
},
|
243
175
|
|
244
176
|
_onMouseMove: function (e) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
L.GeometryUtil = {
|
1
|
+
L.GeometryUtil = L.extend(L.GeometryUtil || {}, {
|
2
2
|
// Ported from the OpenLayers implementation. See https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Geometry/LinearRing.js#L270
|
3
3
|
geodesicArea: function (latLngs) {
|
4
4
|
var pointsCount = latLngs.length,
|
@@ -29,7 +29,7 @@ L.GeometryUtil = {
|
|
29
29
|
areaStr = area.toFixed(2) + ' m²';
|
30
30
|
}
|
31
31
|
} else {
|
32
|
-
area
|
32
|
+
area /= 0.836127; // Square yards in 1 meter
|
33
33
|
|
34
34
|
if (area >= 3097600) { //3097600 square yards in 1 square mile
|
35
35
|
areaStr = (area / 3097600).toFixed(2) + ' mi²';
|
@@ -65,4 +65,4 @@ L.GeometryUtil = {
|
|
65
65
|
|
66
66
|
return distanceStr;
|
67
67
|
}
|
68
|
-
};
|
68
|
+
});
|
File without changes
|
File without changes
|
File without changes
|
@@ -41,7 +41,7 @@ L.Polyline.include({
|
|
41
41
|
var points = this._originalPoints,
|
42
42
|
len = points ? points.length : 0,
|
43
43
|
lastPoint = points ? points[len - 1] : null,
|
44
|
-
// The previous previous line segment. Previous line
|
44
|
+
// The previous previous line segment. Previous line segment doesn't need testing.
|
45
45
|
maxIndex = len - 2;
|
46
46
|
|
47
47
|
if (this._tooFewPointsForIntersection(1)) {
|
@@ -62,7 +62,7 @@ L.Polyline.include({
|
|
62
62
|
return !this._originalPoints || len <= 3;
|
63
63
|
},
|
64
64
|
|
65
|
-
// Checks a line segment intersections with any line
|
65
|
+
// Checks a line segment intersections with any line segments before its predecessor.
|
66
66
|
// Don't need to check the predecessor as will never intersect.
|
67
67
|
_lineSegmentsIntersectsRange: function (p, p1, maxIndex, minIndex) {
|
68
68
|
var points = this._originalPoints,
|
@@ -82,4 +82,4 @@ L.Polyline.include({
|
|
82
82
|
|
83
83
|
return false;
|
84
84
|
}
|
85
|
-
});
|
85
|
+
});
|