geoman-io/leaflet-geoman

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

Aperta

#1013 aperta il 17 ott 2021

 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (404 fork)batch import
good first issueimprovement

Metriche repository

Star
 (1933 stelle)
Metriche merge PR
 (Merge medio 9g 6h) (5 PR mergiate in 30 g)

Descrizione

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)

Guida contributor