Skip to content

Listening to changes #1326

Mar 5, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

You need to listen on the layer self and not on the map:

map.on('pm:create', (e)=>{
  e.layer.on('pm:change', (x)=>{
    console.log('change', x);
  });
});

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@sten-e
Comment options

@Falke-Design
Comment options

@sten-e
Comment options

@Falke-Design
Comment options

@sten-e
Comment options

Answer selected by joshting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants