Skip to content

State

An object used to define default values when using the global-state expression.

state: {
    "chargerType": {"default": ["CCS", "CHAdeMO", "Type2"]},
    "minPreferredChargingSpeed": {"default": 50}
}

SDK Support MapLibre GL JS MapLibre Native
Android
MapLibre Native
iOS
basic functionality ❌ (#4964) ❌ (#3302) ❌ (#3302)