You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add console.log() statements, I can clearly see that overrideStyleFunctionSimple() is called multiple times and runs both branches of the if, depending on the value of subject. However, all drawn features have the same color (red or green). Sometimes everything is green, sometimes everything is red (I guess it applies the color from the last execution of the function to ALL features).
Thanks a lot!
The text was updated successfully, but these errors were encountered:
Not sure if this is the same root cause but I am also having problems with setting the color of my features.
I try to pass it to the Icon class with no effect on Icon file:
Hello,
To style individual features (based on the subject attribute of the feature), I wrote an overrideStyleFunction such as:
Which is configured like this:
If I add
console.log()
statements, I can clearly see thatoverrideStyleFunctionSimple()
is called multiple times and runs both branches of the if, depending on the value of subject. However, all drawn features have the same color (red or green). Sometimes everything is green, sometimes everything is red (I guess it applies the color from the last execution of the function to ALL features).Thanks a lot!
The text was updated successfully, but these errors were encountered: