Map tours

A tour flies the map from stop to stop and shows a caption at each one. It is a small text file in the tour format: a title and a list of stops with position, zoom, tilt, rotation, timing and caption.

A tour in the link

The tour below travels inside the link itself, after #tour=, compressed. Nothing is stored anywhere, and the part after # is never sent to a server. Copy the iframe as it is.

Open this tour on its own
iframe
<iframe
  src="https://maps.siemens-cdn.com/maps/embed/v1/view#tour=jZHLTsMwEEV_xbprK3LaJC3eorJjBTvEwkmmtaljB8cBQZR_R32QUsiC_dw5584MeKPQGe8gU45ooiVI3AXfsPvemUqz6NkmWOV25MDRBv9CVTwGsLO-JHDs6WMbVEMd5NOAilykADnAqgiZCQ7rdpBpOnJ8et9ALpKCQ3tbQy6EEBfwpg--PaysVHuGHF2iJnaksdq_u4PTyS7ByP8S10maZcsJm-SrfEKnBUdrYqUh85yj7oM6gVZXIqf1VyKPmtiDoYZcxzSp-rVXIVLomHGTDUejwv7bpSQLibkMPycwzvnfJPmqyC7-QmTpbIE1R0kqmMPcUvxsU1yf9fLA-T63qmn7bno0Z86HqJnf_qvZrzTG8Xn8Ag"
  title="Map tour from Munich to Erlangen"
  width="800" height="500" style="border:0"
  loading="lazy" referrerpolicy="no-referrer-when-downgrade"
  allowfullscreen></iframe>

The same tour as text. Edit it, then let an agent turn it into a link with the create_tour MCP tool, or use a tour file as below.

tour.json
{
  "version": 1,
  "title": "From Munich to Erlangen",
  "projection": "globe",
  "keyframes": [
    {
      "center": {
        "lat": 40,
        "lng": 11
      },
      "zoom": 2.6,
      "hold": 2000,
      "title": "Europe",
      "caption": "From the globe down to Munich."
    },
    {
      "center": {
        "lat": 48.1443,
        "lng": 11.575
      },
      "zoom": 16,
      "pitch": 55,
      "duration": 7000,
      "title": "Munich",
      "caption": "The Siemens headquarters in Munich.",
      "marker": {
        "label": "Siemens headquarters, Munich"
      }
    },
    {
      "center": {
        "lat": 49.5764,
        "lng": 11.0041
      },
      "zoom": 16,
      "pitch": 58,
      "bearing": 30,
      "duration": 6000,
      "title": "Erlangen",
      "caption": "The Siemens Campus Erlangen, north of Munich.",
      "marker": {
        "label": "Siemens Campus Erlangen"
      }
    }
  ]
}

A published tour file

Longer tours are files below /showcases/tours/ on this host, reviewed like code. The Siemens around the world showcase plays this one.

Open this tour on its own
iframe
<iframe
  src="https://maps.siemens-cdn.com/maps/embed/v1/view?tour=/showcases/tours/siemens-world.json"
  title="Map tour: Siemens around the world"
  width="800" height="500" style="border:0"
  loading="lazy" referrerpolicy="no-referrer-when-downgrade"
  allowfullscreen></iframe>

Controls and accessibility

  • Play and pause, previous and next stop, and the progress are buttons under the caption. With the tour controls focused, the arrow keys step, Home and End go to the first and last stop, and K or Space plays and pauses.
  • Any drag, zoom or key on the map pauses the tour where it is.
  • Screen readers hear each caption as it appears, and the map’s description lists every stop.
  • When the visitor’s system asks for reduced motion, the tour does not play by itself: the buttons step through the stops, and each step is a cut instead of a flight.
  • Add autoplay=0 to the query to start paused.

Scroll story on your own page

A page on this host can drive the tour by scrolling: each section names its stop, and the section in the middle of the screen sends that stop to the map. The map only takes these steps from a page on its own host, so a tour inside another site’s page never moves with that page’s scrolling.

story.html
<!-- Your page, on https://maps.siemens-cdn.com only: the embed accepts steps only from its own origin. -->
<iframe id="tour" src="/maps/embed/v1/view?tour=/showcases/tours/siemens-world.json&amp;autoplay=0" title="Map tour"></iframe>
<section data-step="0">...</section>
<section data-step="1">...</section>
<script type="module">
  const frame = document.getElementById('tour');
  const io = new IntersectionObserver((entries) => {
    for (const e of entries) {
      if (e.isIntersecting) {
        frame.contentWindow.postMessage({ type: 'siemens-maps:tour-step', step: Number(e.target.dataset.step) }, location.origin);
      }
    }
  }, { rootMargin: '-45% 0px -45% 0px' });
  document.querySelectorAll('[data-step]').forEach((s) => io.observe(s));
</script>