Leaflet / Leaflet.draw

Vector drawing and editing plugin for Leaflet
https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html
MIT License
1.96k stars 992 forks source link

Resizing in active edit mode #1045

Closed kalutkaz closed 1 year ago

kalutkaz commented 2 years ago

Hi.

I have a question about edit mode. When we active edit mode and after that triggered resizing event (in my case, the entire logical block with the map becomes smaller) the edit points don`t change position.

image I think the problem is that the map changes its size, but the edit points don't recalculate their coordinates for the smaller map.

Does leaflet have some way to change the position for edit markers after resizing? Or is their position calculating once, when we active edit mode?