Examples
Two React recipes that combine the iframe configuration from the parameters page with the runtime postMessage API. Each is self-contained: drop it onto a page and replace the publishable key and ids. The events page carries the same calls in plain TypeScript.
Switch the displayed itinerary
Put a list of itineraries beside the map and swap the map's content on click, without reloading the iframe. Post a mountaya:setItinerary command to the iframe's contentWindow on each selection. Enable the controls only after the mountaya:ready event, so the first command is never posted too early.
The same command carries display overrides, so you can switch the terrain or the visible overlays as the content changes. The events page lists every override.
React to the ready event's bounds
The mountaya:ready event reports the framed itinerary's own bounds as [west, south, east, north]. Drive your own layout from them: render a caption with the extent, fit a static minimap, or note the active content id.