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

L.EditToolbar.Edit.revertLayers() will trigger snapping #39

Open
haoliangyu opened this issue Oct 3, 2016 · 0 comments
Open

L.EditToolbar.Edit.revertLayers() will trigger snapping #39

haoliangyu opened this issue Oct 3, 2016 · 0 comments

Comments

@haoliangyu
Copy link
Contributor

haoliangyu commented Oct 3, 2016

Because revertLayers() sets the original latlngs to the layer (see the code here), it will fire the move event and then the _snapMarker() function will be called. If there is a snapper layer nearby, the marker will be snapped to that layer, instead of going back to its original location.

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

No branches or pull requests

1 participant