Skip to content
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

Change pm:remove event trigger #382

Merged
merged 4 commits into from Jan 15, 2019
Merged

Conversation

codeofsumit
Copy link
Contributor

pm:remove won't fire on every layerremove now. It will only fire if a layer was removed via leaflet.pm the toolbar. This is an important distiction as some applications remove layers to redraw them while the removal tool of leaflet.pm serves the purpose of actually deleting a layer. The pm:remove event should cover that scenario.
For all other instances, leaflets own layerremove event will do.

@codeofsumit codeofsumit merged commit a43d21f into develop Jan 15, 2019
@codeofsumit codeofsumit deleted the change-pm-remove-trigger branch April 26, 2019 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant