Skip to content

[Question] How to trigger cancel automatically #861

Closed Answered by Falke-Design
pichaya07 asked this question in Questions & Help
Discussion options

You must be logged in to vote

with

map.pm.disableDraw('Line');

or

map.pm.Draw.disable();

you can force a cancel. The Event 'pm:drawend' is fired, but this only works with the drawing tools and not with the edit tools

To disable drawing if you don't know the active type or to disable drawing and edit tools, you can call

map.pm.enableDraw('Line');
map.pm.disableDraw('Line');

First you change the drawing type and then you disable now knowing the type.

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Falke-Design
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Falke-Design
Comment options

@maximbroos
Comment options

@LamprosPitsillos
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #413 on April 14, 2021 20:23.