Map tours

A tour turns a map into a short guided story. It flies the camera from one view to the next, stops, and shows a title and a few lines of text before it moves on. Visitors press play and watch, or step through at their own pace.

A stop can also change what is on the map. It can show only some layers, switch the 3D terrain view on or off, and move the time slider to a date, so a tour can walk someone through before and after, or from one season to the next.

A stop can also play time on. Give it a time and a later timeTo, and once the camera arrives the slider runs from one to the other over playMs milliseconds (500 to 600000, 8000 if you leave it out) before the stop's hold begins. That is how a tour narrates something that unfolds over days, such as a battle: fly to the town, play the next two days, stop on the turning point. Pausing the tour pauses the clock, a visitor who takes the slider stops it, and visitors who prefer reduced motion see the stop at its end time instead.

A map can have up to 10 tours, each with up to 50 stops.

Making a tour in the builder

Open the map in the builder and expand Tours on the Map tab.

  1. Move the preview map to the first view you want, type a title and press Add Tour. The view you are looking at becomes stop 1.
  2. Move the map to the next view and press Add Stop From Current View. The stop keeps the map's centre, zoom, rotation and tilt exactly as you see them. Repeat for every stop.
  3. Give each stop a Title and, if it helps, some Text. Keep it short: a sentence or two that someone reads in the few seconds the stop is held. The text is plain text and line breaks are kept.
  4. Flight is how long the camera takes to fly in to the stop, and Hold is how long it waits there before flying on. Leave them empty for the defaults (4 seconds and 6 seconds).
  5. To change what the map shows at a stop, choose Show only these layers and tick the layers, set 2D or 3D at this stop, or type a date into Time slider at this stop (2026-07-01, or a date and time such as 2026-07-01T12:00Z).
  6. Reorder stops by dragging the grip at the left of each one, or with Move Up and Move Down. Go To Stop jumps the preview there, and Use Current View replaces a stop's view with the one you are looking at.
  7. Press Preview to play the tour on the builder map, then save the map.

Tick Play on open to start the tour as soon as the map opens, and Start again after the last stop to loop it, which suits a screen in a lobby or at an event.

What visitors see

A tour bar sits at the bottom of the map with play and pause, the tour's name (a list when there is more than one), previous and next buttons, a dot for each stop and a counter. The card above it shows the stop's title and text. Visitors can:

  • press play to run the tour, or pause it at any time;
  • press a dot to go straight to that stop;
  • use the left and right arrow keys to step back and forward, and Home and End for the first and last stop;
  • pan or zoom the map whenever they like. That pauses the tour, and play flies back to the stop and carries on.

Visitors who have asked their device to reduce motion get the same tour without the flights: each stop is shown at once, and nothing plays on its own.

Linking to a stop

Add ?tour=<id>&stop=<n> to the map's address to open it at that stop, paused, with its card showing. Stops are counted from 1, the way visitors see them. The tour's id is made from its title when you add it ("Harbour Walk" becomes harbour-walk); sarkoa map tour list and the map document list them all.

https://maps.sarkoa.com/map/view/<map-id>?tour=harbour-walk&stop=3

Driving a tour from your page

An embedded map can follow the page around it. As a reader scrolls through an article, the page tells the map which stop to show:

<iframe id="harbour-map" src="https://maps.sarkoa.com/map/embed/<map-id>" width="100%" height="520"></iframe>
<script>
  const map = document.getElementById('harbour-map').contentWindow;
  // Stops are counted from 1. Add tour: '<id>' when the map has more than one tour.
  function showStop(n) {
    map.postMessage({ type: 'sarkoa:tour', action: 'goToStop', stop: n }, 'https://maps.sarkoa.com');
  }
</script>

The map also accepts next, previous, play and pause as the action. It tells your page when it is ready, with {type: 'sarkoa:tour-ready', tours: [{id, title, stops}]}, and every time the stop changes, with {type: 'sarkoa:tour-state', tour, stop, stops, playing}. The map only reads messages from the page that embeds it.

Tours in the map document

Tours live in spec.tours of the map document:

{
  "id": "harbour-walk",
  "title": "Harbour Walk",
  "loop": false,
  "stops": [
    {
      "view": { "centerLng": -79.381, "centerLat": 43.643, "zoom": 15, "bearing": 20, "pitch": 45 },
      "title": "Union Station",
      "body": "Start under the arches.",
      "durationMs": 3000,
      "holdMs": 6000,
      "layers": { "visible": ["layer-ferries"] },
      "time": "2026-07-01"
    }
  ]
}

timeTo needs a time and must be later than it; playMs needs a timeTo. view.mode (2d or 3d) switches the terrain view on arrival; left out, the stop keeps whatever the visitor has. A full replace that leaves tours out keeps the stored tours, and "tours": [] removes them. The setTours operation replaces the whole list.

With the MCP, set_tour adds or replaces one tour and remove_tour deletes one. With the CLI:

sarkoa map tour add "Toronto Harbour" --title "Harbour Walk" \
  --stop "-79.381,43.643,15,20,45|Union Station|Start under the arches." \
  --stop "-79.374,43.640,16|Ferry Docks"
sarkoa map tour list "Toronto Harbour"
sarkoa map tour remove "Toronto Harbour" harbour-walk

Limits

  • Up to 10 tours per map and 50 stops per tour. Titles are up to 80 characters and a stop's text up to 600.
  • Flights take 0.5 to 20 seconds and holds 0 to 60 seconds.
  • A print shows one view, so tours are not printed.
  • A stop that names a layer the map no longer has simply ignores it.