Open ashmigelski opened 5 years ago
Hey After update to leaflet@1.5.1 I noticed errors in console after layer.remove().
layer.remove()
Problem is somewhere between Leaflet.Draw and Leaflet
My layers have no poly.option.original so is undifined and Leaflet.Draw calls poly.setState(undefined). Updated leaflet@1.5.1 can't handle it :cry:
poly.option.original
undifined
poly.setState(undefined)
Leaflet version I'm using: 1.5.1
Leaflet Draw version I'm using: 1.0.4
create layer and add it to map
start editing with layer.editing.enable()
layer.editing.enable()
remove layer -> error in console
https://next.plnkr.co/edit/ueXrIorKU5nPlA9P
Hey After update to leaflet@1.5.1 I noticed errors in console after
layer.remove()
.Problem is somewhere between Leaflet.Draw and Leaflet
My layers have no
poly.option.original
so isundifined
and Leaflet.Draw callspoly.setState(undefined)
. Updated leaflet@1.5.1 can't handle it :cry:How to reproduce
Leaflet version I'm using: 1.5.1
Leaflet Draw version I'm using: 1.0.4
create layer and add it to map
start editing with
layer.editing.enable()
remove layer -> error in console
Minimal example reproducing the issue
https://next.plnkr.co/edit/ueXrIorKU5nPlA9P