[ Version ( since = "1.6" ) ]
public void set_global_state (string key, VectorValue value)
Sets a global state value.
Global state can be accessed in the stylesheet through the "global-state" expression operator. This allows styles to provide options that can be configured without changing the style JSON.
Previously rendered tiles are not affected by changes to global state and must be re-rendered.
| this |
a [class@VectorRenderer] |
| key |
the state key |
| value |
the state value |