-
-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
When using the new Leaflet 2.0.0-alpha (https://leafletjs.com/2025/05/18/leaflet-2.0.0-alpha.html) and actioning a zoom, deprecated DomUtil functions are triggered.
Workaround
Add in the following after import
// https://github.com/Falke-Design/Leaflet-V1-polyfill
L.DomUtil.remove = function (el) {
const parent = el.parentNode
if (parent) {
parent.removeChild(el)
}
}
L.DomUtil.removeClass = (el, name) => el.classList.remove(name)Happy to open a PR to replace the use of these function. Just let me know.
Metadata
Metadata
Assignees
Labels
No labels