Skip to content

Marker editing enabled() func? (dragging.enabled()) #688

Closed
@henrikmaa

Description

@henrikmaa

Hi,

How do I check if a marker is in editing mode/dragging mode(since marker are draggable not editable)?
normal layers can be checked for editing with:

e.target.pm.enabled()

but there is no such function for dragging?
am I missing something from docs or should this be added?

Here is a fiddle, put a marker in edit mode then click on it while in edit mode. then e.target.pm.enabled() will return false in console because editing mode is false, but _dragging is true

https://jsfiddle.net/es8p49b1/2/

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedIssues that are fixed in develop or in a PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions