Replies: 2 comments 5 replies
-
This sounds like issue #6048 |
Beta Was this translation helpful? Give feedback.
2 replies
-
Quick question, does global state work only in paint properties? I'm trying to use it in layout property of symbol layer with |
Beta Was this translation helpful? Give feedback.
3 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.
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