Appearance
Function: getState()
ts
function getState(): Promise<MapState>;Return a snapshot of the current Mapsted Maps JavaScript API state.
Returns the live MapState snapshot including sdkState, currentFloor, selectedEntityId, mapCenter, zoomLevel, language, and idleState.
Note: callable pre-init — no ensureReady guard. Callers before init() receives sdkState: 'UNINITIALIZED' with all positional fields null. Use subscribe to be notified of state transitions.
Returns
Promise<MapState>