Open hbaltz opened 6 years ago
We also want to detect one more scenario as below.
Create a polygon p1.
Try to create p2 polygon on top of p1
It should show pop like "You are creating polygon on top of existing polygon" to continue Press "Yes" or "No".
If we select "Yes" then it should allow us to draw overlapping polygon and if "No" then it should discard the last step of polygon so that he can still proceed to create polygon p2 without intercepting the p1.
How to reproduce
Leaflet version I'm using: 1.2.0
Leaflet Draw version I'm using: 0.4.13
Browser (with version) I'm using: Firefox Quantum v57.0.4 (64bits)
OS/Platform (with version) I'm using: Wintdows 10 professional v1709
Dont' allow intersection for the polygons:
Draw a polygon with enough points to create a crossed polygon:
What behaviour I'm expecting and which behaviour I'm seeing
Minimal example reproducing the issue
You can reproduce this in the demo