Dynamic style change #2926
Unanswered
Kovalskiii
asked this question in
Q&A
Replies: 1 comment
-
Have you managed to do it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to dynamically change style of SymbolLayer (only for pressed cluster).
I try to do something like this:
iconImage: [ 'case', ['==', ['get', 'cluster_id'], +pressedClusterId], ['call', ['myFunc', ['get', 'cluster']]], 'defaultMarkerIcon', ]
Is it possible to call here function which will return string with icon name ?
Or there exist more simple way to do this ?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions