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