bopen / leaflet-area-selection

Create and manipulate a polygonal area on a Leaflet map
https://bopen.github.io/leaflet-area-selection/
MIT License
36 stars 14 forks source link

Map drag disabled if a selection is not completed #11

Closed GruianDavid closed 2 years ago

GruianDavid commented 2 years ago

Hello! I noticed that the map drag action gets disabled if a selection is stopped mid way.

Steps to reproduce:

  1. Click on selection icon
  2. Press 2 times to create 2 points
  3. Press the selection icon again to cancel the previous selection
  4. Try to drag the map. (It should not work)

Observations: I noticed that if you make a new selection and you complete it, it starts to work again

p.s. will try to look into it and make a pr next days