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

Snapping when using 'limitMarkersToCount' releases drag state of anchor point #1559

Open
kayhanablachim opened this issue Feb 4, 2025 · 0 comments
Labels

Comments

@kayhanablachim
Copy link

Hi,

When entering edit mode with:
L.pm.enableGlobalEditMode({ allowEditing: false, allowSelfIntersection: false, limitMarkersToCount: 1, });
while i'm dragging an anchor point over a potential snapping point, the dragging anchor point snaps, but it also releases my drag action.
This is especially a problem when using allowSelfIntersection: false, because i end up with an incorrect (self-intersecting) polygon:

Image

Any help with this is appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants