Appearance
Interface: MapState
Snapshot of the current Mapsted Maps JavaScript API state, returned by getState().
Properties
| Property | Type | Description |
|---|---|---|
currentFloor | FloorInfo | null | Currently active floor, or null if not yet loaded. |
idleState | "active" | "idle" | Current idle state. |
isReady | boolean | Whether the map is fully loaded and ready for commands. |
language | string | null | Current language code. |
mapCenter | [number, number] | null | Current map center coordinates [lng, lat]. |
sdkState | ApiState | Current Mapsted Maps JavaScript API lifecycle state. |
selectedEntityId | MapstedId | null | Currently selected entity ID, or null. |
zoomLevel | number | null | Current zoom level. |