You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 17, 2025. It is now read-only.
We’re excited to announce the release of the Leaflet V2.0 alpha version! 🎉
This marks a significant step toward modernizing Leaflet’s architecture and aligning it with the modern JavaScript ecosystem.
⚠️ Key Changes in Leaflet 2.0
To ensure your plugin remains compatible, please take note of the following important updates:
Factory methods have been replaced by constructors: L.marker(latlng) ➜ new Marker(latlng)
The global L object has been removed:
Use explicit imports instead: import { Marker } from 'leaflet'
Util methods have been replaced with native browser methods: Util.isArray() ➜ Array.isArray()
Pointer events support:
Pointer events are now supported in place of mouse and touch events.