Iframe events
Your page talks to the embed with postMessage. It sends commands in, and the embed posts events back. Every message is an object whose type starts with mountaya:.
These four messages are the whole public protocol.
Post mountaya:setItinerary to the iframe's window, targeting the embed's origin. The iframe does not reload.
The same message can change the display. Fields you leave out keep their current value:
Send your first command after the embed's first mountaya:ready event, or it may arrive too early.
The embed posts mountaya:ready when the map has loaded, and again after each switch. Check the sender's origin first.
Event