:earth_asia: FreeDraw allows the free-hand drawing of shapes on your Leaflet.js map layer – providing an intuitive and familiar UX for creating geospatial boundaries similar to Zoopla and others. Included out-of-the-box is the concaving of polygons, polygon merging and simplifying, as well as the ability to add edges and modify existing shapes.
If the mergePolygons option is set to false, editing a particular edge of a polygon multiple times will cause the 'markers' event to be fired one additional time for each time the edge was moved.
Example:
if a square is drawn, and the upper right point is dragged 3 separate times, 'markers' will fire:
1 times after the first drag
2 times after the seconds drag
3 times after the third drag
For a total of 6 firings, instead of the expected 3. Currently working on the issue, but any insight into why this may be occurring would be helpful.
If the
mergePolygons
option is set to false, editing a particular edge of a polygon multiple times will cause the'markers'
event to be fired one additional time for each time the edge was moved.Example: if a square is drawn, and the upper right point is dragged 3 separate times,
'markers'
will fire:For a total of 6 firings, instead of the expected 3. Currently working on the issue, but any insight into why this may be occurring would be helpful.