maptastik / greenway-closure-creator-demo

Created with StackBlitz ⚡️
https://stackblitz.com/edit/greenway-closure-creator-demo
0 stars 0 forks source link

Double-click to close polygons #5

Open maptastik opened 3 years ago

maptastik commented 3 years ago

The current way to close a polygon is to select the first point in the shape. Double-click to close editing on a feature is a common experience in GIS software and other shape-editing software. The user should be able to close the polygon by double-clicking.

maptastik commented 3 years ago

I've done some exploration on this, but it seems like this is not possible with Leaflet.Draw. At the very least, solutions seem to be hacky and unstable.