getGlobalState

fun getGlobalState(): JsonObject(source)

Get a snapshot of the current global state of the style that is used by the snapshotter, used by the global-state expression.

Return

the current global state, or an empty object if the style is not loaded yet