Custom control to add tooltip to feature #918
Answered
by
Falke-Design
cannibalflea
asked this question in
Questions & Help
-
I am trying to add a custom control to add tooltips to features drawn on the map. I have setup the afterClick function like:
I know that when the button toggles off it does call the off method but it doesn't seem like the event listener is being removed or at least is propagated to each feature. I am not sure what I'm doing wrong. |
Beta Was this translation helpful? Give feedback.
Answered by
Falke-Design
May 20, 2021
Replies: 1 comment
-
I suggest you to add the event directly to the layer instead to the group:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cannibalflea
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suggest you to add the event directly to the layer instead to the group: