-
I'm trying to change the fillcolor of elements of one geojson layer dynamically. Maybe someone could have a look at this sample : https://codepen.io/Kris-B/pen/YzNgLWo?editors=1011 Any help would be appreciated ! |
Beta Was this translation helpful? Give feedback.
Answered by
Clebal
Apr 27, 2021
Replies: 1 comment 1 reply
-
Hi! You have to clone the layer updating the updateTriggers property |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Kris-B
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! You have to clone the layer updating the updateTriggers property
layer = layer.clone({ updateTriggers: { getFillColor: showAll }})
before setProps.