You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also a simple events like freeDraw.on("drawcommit", e => console.log(e.layer)) would be nice.
The events I would like to see are:
drawstart - self-explanatory I think, maybe include the start latlng
drawend - triggered whenever drawing is stopped, contain recorded latlngs
drawcancel - triggered whenever drawing is canceled, contain recorded latlngs
drawcommit - triggered whenever drawing is canceled, contain recorded latlngs, ALSO contain the newly created polygon layer if available(!)
editstart, editend, editcancel(?), editcommit
Maybe also have an option to not submit the drawn area when the mouse leaves the map but instead cancel or do nothing.
I would also do it but I would rather have you do it because I hardly know anything about the project and would rather not have to learn all the details to do it. The most important part to me is the target feature group.
The text was updated successfully, but these errors were encountered:
I would like to be able to have FreeDraw put the polygon layers on a specific layer/feature group because as of now it is hard-coded to add them to the map directly.
https://github.com/Wildhoney/Leaflet.FreeDraw/blob/master/src/helpers/Polygon.js#L73-L75
It would be way nicer to handle that way.
Also a simple events like
freeDraw.on("drawcommit", e => console.log(e.layer))
would be nice.The events I would like to see are:
Maybe also have an option to not submit the drawn area when the mouse leaves the map but instead cancel or do nothing.
I would also do it but I would rather have you do it because I hardly know anything about the project and would rather not have to learn all the details to do it. The most important part to me is the target feature group.
The text was updated successfully, but these errors were encountered: