Skip to content

Enumeration: PARENT_ACTION

Enum of different messages sent to the iframe.

Enumeration Members

Enumeration MemberValueDescription
APPLY_BOOST"APPLY_BOOST"-
AUTH"AUTH"Authentication handshake — the host page transmits the access key to the iframe over postMessage immediately after IFRAME_LOADED so the iframe never needs to read it from URL query strings or server-side request logs. This is the postMessage-AUTH transport path. The legacy URL-query transport remains active during the 4.0.1 grace window for iframe-side rollout; both paths converge on the same access key. Phase A (live in 4.x): The Mapsted Maps JavaScript API emits AUTH postMessage AND continues to set key on iframe src URL. Iframe accepts whichever path arrives first. Phase B (iframe-team rollout): iframe accepts AUTH postMessage and prefers it over URL key. Phase C: the API stops setting URL key; only AUTH postMessage. Phase D: iframe rejects URL key.
CALCULATE_DISTANCE_REQUEST"CALCULATE_DISTANCE_REQUEST"-
CENTER_ON_MAPOVERLAY"CENTER_ON_MAPOVERLAY"-
CHANGE_FLOOR_BY_ID"CHANGE_FLOOR_BY_ID"-
CHANGE_FLOOR_BY_NAME"CHANGE_FLOOR_BY_NAME"-
CHANGE_LAGUAGE"CHANGE_LAGUAGE"Deprecated Protocol typo — use CHANGE_LANGUAGE. Will be corrected in a future protocol update.
CHANGE_LANGUAGE"CHANGE_LAGUAGE"Corrected spelling — maps to same protocol string for backward compat. Intentional duplicate value (aliased to the typo above so both enum keys emit the same wire protocol string until maps-web v2 ships the fix).
CLEAR_ROUTE"CLEAR_ROUTE"Clear the active route/directions (see clearRoute).
GET_BUILDING_INFO_REQUEST"GET_BUILDING_INFO_REQUEST"Request static building metadata by id (see getBuildingInfo).
GET_FLOORS_REQUEST"GET_FLOORS_REQUEST"-
GET_LANGUAGE_REQUEST"GET_LANGUAGE_REQUEST"Request current iframe language (see getLanguage).
GET_THEMES_REQUEST"GET_THEMES_REQUEST"Fetch available themes for the current property (see getThemes).
IFRAME_LOADED"IFRAME_LOADED"-
INITIALISE_MAP"INITIALISE_MAP"-
OPEN_BUILDING_VIEW"OPEN_BUILDING_VIEW"Navigate/boost the map to a building (and optional floor). Handled by the mapsted-maps-web iframe (useIframeStore OPEN_BUILDING_VIEW → getBoost). Sent by navigateToBuilding. Payload: { building, floor? }.
RESET_IDLE_TIMER"RESET_IDLE_TIMER"Reset the idle countdown (see resetIdleTimer).
SELECT"SELECT"-
SET_COORDS_DATA"SET_COORDS_DATA"-
SET_DEFAULT_ROUTE_OPTIONS"SET_DEFAULT_ROUTE_OPTIONS"-
SET_ENTITY_DATA"SET_ENTITY_DATA"-
SET_ENTITY_DATA_BY_ID"SET_ENTITY_DATA_BY_ID"-
SET_ENTITY_DEFAULTS"SET_ENTITY_DEFAULTS"-
SET_FEATURES"SET_FEATURES"-
SET_IDLE_TIME"SET_IDLE_TIME"-
SET_MAP_VIEW"SET_MAP_VIEW"-
SET_MAPOVERLAY_MARKERS"SET_MAPOVERLAY_MARKERS"-
SET_THEME"SET_THEME"Apply a theme by id (see setTheme).
SHOW_POPUP"SHOW_POPUP"Programmatically display the default popup for an entity (see showPopup).