Leaflet.StyleEditor icon indicating copy to clipboard operation
Leaflet.StyleEditor copied to clipboard

Edit and delete with Leaflet.draw at same time

Open alstarace opened this issue 4 years ago • 0 comments

How do I disable Leaflet.draw delete button while I'm editing? And viceversa, how to disable StyleEditor while I'm deleting with Leaflet.draw?

What I mean is that, if I click on the Leaflet.draw delete button, and I click on on the StyleEditor button (or viceversa), when I click on an object, it gets deleted but the StyleEditor sidebar also shows.

I know that users shouldn't do that, but I'd prefer to prevent them to even try.

alstarace avatar Feb 11 '21 12:02 alstarace