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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hopefully a simple question... I am playing with the new global-state features in the style. I have it working when using it directly with a property:
"state": {
"stateVarName": {"default": "#00FF00FF"}
}
"line-color": ["global-state", "stateVarName"] // Works fine
But, can't figure out how to use it inside another expression:
"line-color": [
"match",
["get", "id"],
"T",
"rgba(0,0,0,1)",
["global-state", "stateVarName"] // Does not work; always returns null
]
Hopefully I am missing something simple? Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions