Skip to content

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

@kayhanablachim

Description

@kayhanablachim

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions