How to get the layer which drawn with pm.enableDraw and how to add event code on that layer? #887
-
Hello there,
It can be called several times with different types. I want to get some events for changed coordinates and removed by each marker. However, I don't know how to get each layer and how to set the event code. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can use the event
Or you can get all Layers with |
Beta Was this translation helpful? Give feedback.
-
Oh! Thanks for your reply. |
Beta Was this translation helpful? Give feedback.
You can use the event
pm:create
to listen for new created layers:Or you can get all Layers with
that.mymap.pm.getGeomanDrawLayers()