Improved
v2.0.0-alpha.1
Changes
❇️ New Features
- Map: New export
LeafletMapas an alias forMapby @willfarrell in https://github.com/Leaflet/Leaflet/pull/9804 - Control.Layer: New option
collapseDelayby @fyyyyy in https://github.com/Leaflet/Leaflet/pull/9612
✨ Refactorings (⚠️ Breaking Changes)
- Fully converted all classes to ESM by @simon04 in https://github.com/Leaflet/Leaflet/pull/9677
- Use optional chaining with function calls by @simon04 in https://github.com/Leaflet/Leaflet/pull/9737
❌ Removed Features (⚠️ Breaking Changes)
- Drop aliased functions
addEventListener,removeEventListener,addOneTimeEventListener,fireEvent,hasEventListenerson Evented by @lukewarlow in https://github.com/Leaflet/Leaflet/pull/9781 - Drop aliased functions
addListener,removeListeneron DomEvent by @Falke-Design in https://github.com/Leaflet/Leaflet/pull/9834
🐞 Bugfixes
- Cleanup map.locate() by @jorri11 in https://github.com/Leaflet/Leaflet/pull/9746
- Popup width by @IvanSanchez in https://github.com/Leaflet/Leaflet/pull/9765
- Fix overlay shifting with new BlanketOverlay by @Falke-Design in https://github.com/Leaflet/Leaflet/pull/9822
For more information checkout the blog post: https://leafletjs.com/2025/05/18/leaflet-2.0.0-alpha.html