New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is there no layer.deleting #328
Comments
Calling While in editing mode, it is possible for users to alter a layer (for example, by dragging edit handles), or to delete a layer. Calling If you want to find out whether a layer has been edited before it is saved, you can check the value of There's not a corresponding If you can wait until the layers are saved, then you can listen for the |
Ok, thank you very much. The |
The method that @manleyjster describes will work fine. The references commits add events that you can listen to. I've also added reverted events for when the user clicks the Unfortunately you cannot listen to these events on the L.Feature Group. 0.8-dev Leaflet adds better support for propagating events. I will need to add support for using this when I do more work for Leaflet.Draw and Leaflet 0.8. You will need to do a fresh build to get the latest changes. Sorry I haven't fully tested this, baby has just woken up ;) It looks good to go though. |
We can ask a layer if it is being dragged or edited by calling
layer.editing.enabled()
. Why don't we have this for deletion?The text was updated successfully, but these errors were encountered: