-
-
Notifications
You must be signed in to change notification settings - Fork 10
Leaflet 1.0 support #1
Copy link
Copy link
Closed
Description
Leaflet 1.0 has some changes which have to be implemented:
Vectors API changes
- Support of
Renderer - Removal of
MultiPolylineandMultiPolygon -
getCenterMethod ofPolylineandPolygon - Changed
Circleto inherit fromCircleMarkerand not the other way. - Removed
PolylineandPolygonspliceLatLngs - Changed
PolygongetLatLngsto always return an array of rings (nested array) - Added the ability to specify a custom pane for vector layer
- Added vector layers
fillRuleoption. #2834 - Removed
L_PREFER_CANVASglobal switch and addedMappreferCanvasoption instead.
Layers API improvements
- Added
Layerclass which all layers added to a map should inherit from. - Added
removemethod to layers and controls (marker.remove()is now equivalent tomap.removeLayer(marker)). - Added
paneoption to all layers that can be changed (e.g. you can setpane: 'overlayPane'to a tile layer). - Added
mapcreatePanemethod for custom panes. #1742 - Added
shadowPaneoption to markers as well. - Added
togglePopup,setPopupContent,getPopup,isPopupOpenmethods to all layers. #2279 #2292 - Removed
Maptilelayersloadevent. - Renamed
clickableoption tointeractive. #2838 #2499 - Added
nonBubblingEventsoption to layers #3605 #3307 #3604
Other API improvements
- Added
LatLngequalssecond argumentmaxMargin. - Added optional support for center-oriented scroll for
L.mapoptiontouchZoom. #2527 - Added
Markermousemoveevent. #2798 - Added
LatLngclonemethod. #3390 - Added
MapsetMinZoomandsetMaxZoommethod. #3383 #3380 - Added
PopupautoCloseoption #2716 #1853 - Added
Control.Zoomenableanddisablemethods. #3172 - Added
MapwheelDebounceTimeoption (by @AndriiHeonia). #2836 #2501 - Added
ImageOverlayaltoption. #2767 #2564 - Added
MapmaxBoundsViscosityoption that controls how much the map resits dragging out of max bounds (set to1for a hard limit). #2224 #3510 #1673 - Added
BoundsandLatLngBoundsoverlapsmethod. #2981 #3508
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels