geoman-io/leaflet-geoman

how to stop removing marker & circle marker when "edit" button is triggerd?

Open

#1,013 opened on Oct 17, 2021

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (1,933 stars) (404 forks)batch import
good first issueimprovement

Description

When the edit mode edit is triggered to remove polygon's vertex, it also allows me to remove marker and circle marker by right click.

Is there any way to prevent it? (only allow to remove vertex but not the whole object like marker or circle marker)

The reason is if you remove marker or circle marker while edit mode is on from mobile device (press holding finger), you can't pan the map around (but you can still zoom in-out)

Contributor guide