We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leaflet 1.0 has some changes which have to be implemented:
Renderer
MultiPolyline
MultiPolygon
getCenter
Polyline
Polygon
Circle
CircleMarker
spliceLatLngs
getLatLngs
fillRule
L_PREFER_CANVAS
Map
preferCanvas
Layer
remove
marker.remove()
map.removeLayer(marker)
pane
pane: 'overlayPane'
map
createPane
shadowPane
togglePopup
setPopupContent
getPopup
isPopupOpen
tilelayersload
clickable
interactive
nonBubblingEvents
LatLng
equals
maxMargin
L.map
touchZoom
Marker
mousemove
clone
setMinZoom
setMaxZoom
Popup
autoClose
Control.Zoom
enable
disable
wheelDebounceTime
ImageOverlay
alt
maxBoundsViscosity
1
Bounds
LatLngBounds
overlaps
The text was updated successfully, but these errors were encountered:
When updating plugins, what do I replace splicelatlngs with?
Sorry, something went wrong.
@catbadger Depends on what you want to do. LeafletPHP didn't support it anyway. If you want to convert the latlangs on PHP side, you could use https://github.com/netzmacht/php-leaflet/blob/master/src/Netzmacht/LeafletPHP/Value/LatLng.php#L125
No branches or pull requests
Leaflet 1.0 has some changes which have to be implemented:
Vectors API changes
Renderer
MultiPolyline
andMultiPolygon
getCenter
Method ofPolyline
andPolygon
Circle
to inherit fromCircleMarker
and not the other way.Polyline
andPolygon
spliceLatLngs
Polygon
getLatLngs
to always return an array of rings (nested array)fillRule
option. #2834L_PREFER_CANVAS
global switch and addedMap
preferCanvas
option instead.Layers API improvements
Layer
class which all layers added to a map should inherit from.remove
method to layers and controls (marker.remove()
is now equivalent tomap.removeLayer(marker)
).pane
option to all layers that can be changed (e.g. you can setpane: 'overlayPane'
to a tile layer).map
createPane
method for custom panes. #1742shadowPane
option to markers as well.togglePopup
,setPopupContent
,getPopup
,isPopupOpen
methods to all layers. #2279 #2292Map
tilelayersload
event.clickable
option tointeractive
. #2838 #2499nonBubblingEvents
option to layers #3605 #3307 #3604Other API improvements
LatLng
equals
second argumentmaxMargin
.L.map
optiontouchZoom
. #2527Marker
mousemove
event. #2798LatLng
clone
method. #3390Map
setMinZoom
andsetMaxZoom
method. #3383 #3380Popup
autoClose
option #2716 #1853Control.Zoom
enable
anddisable
methods. #3172Map
wheelDebounceTime
option (by @AndriiHeonia). #2836 #2501ImageOverlay
alt
option. #2767 #2564Map
maxBoundsViscosity
option that controls how much the map resits dragging out of max bounds (set to1
for a hard limit). #2224 #3510 #1673Bounds
andLatLngBounds
overlaps
method. #2981 #3508The text was updated successfully, but these errors were encountered: