-
Notifications
You must be signed in to change notification settings - Fork 84
Description
Dear Leaflet Plugin Maintainer,
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.
🔗 Read the full announcement and changelog:
https://leafletjs.com/2025/05/18/leaflet-2.0.0-alpha.html
🔧 What You Can Do Now
- Test your plugin with the Leaflet 2.0 alpha release.
- Update your code to reflect the changes.
- Report any issues or feedback on our GitHub repo: https://github.com/Leaflet/Leaflet
- Update the
compatible-v2
flag of your plugin to make it visible on the Plugins page.
Our target for the stable release is November 2025, and we’d love your help to ensure the Leaflet plugin ecosystem is fully prepared.
Thank you for your continued contributions to the Leaflet community!
Cheers,
The Leaflet Team