Skip to content

Interface: MapState

Snapshot of the current Mapsted Maps JavaScript API state, returned by getState().

Properties

PropertyTypeDescription
currentFloorFloorInfo | nullCurrently active floor, or null if not yet loaded.
idleState"active" | "idle"Current idle state.
isReadybooleanWhether the map is fully loaded and ready for commands.
languagestring | nullCurrent language code.
mapCenter[number, number] | nullCurrent map center coordinates [lng, lat].
sdkStateApiStateCurrent Mapsted Maps JavaScript API lifecycle state.
selectedEntityIdMapstedId | nullCurrently selected entity ID, or null.
zoomLevelnumber | nullCurrent zoom level.