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

Fix check for allowIntersects when closing polygon when clicking on the first point again. #973

Open TonD83 opened 4 years ago

TonD83 commented 4 years ago

Branched from v1.0.4 tag, not sure why develop is behind. In our project we really need to have a working intersection detection when closing the polygon by clicking on the first point, so I fixed that in this branch. Hopefully you will be able to release this anytime soon, so we don't have to use our own fork.