Get started
Map Publishing

Quickstart

Quickstart

Put a live, interactive map of your published content on your own page with one <iframe>.

1

Check the prerequisites
  • Your organization holds Map Publishing, which comes with an agreement.
  • The host of your page is in your organization's allowed domains. Ask Mountaya to add it, and localhost:3000 to develop locally.
  • You have a publishable key (pk_…) with the publishing scope, from Organization → API keys in the Mountaya app.

2

Add the iframe

Paste this where the map goes, with your key:

<iframe
  src="https://app.mountaya.com/studio/embed?publishable_key=pk_your_publishable_key&itinerary_id=0b6d1a4e-6d3f-4f7a-9c2e-1f0a5b8c3d21&terrain=topo"
  title="Tour du Mont-Blanc"
  width="100%"
  height="520"
  style="border: 0; border-radius: 8px"
  loading="lazy"
  referrerpolicy="strict-origin-when-cross-origin"
></iframe>

3

Choose what it shows

Query parameters pick the content and the controls:

ParameterShows
itinerary_idOne published itinerary
collection_idA collection's public itineraries and zones
terrain=satelliteThe satellite base map
with_download_control=trueA route file download button
with_directions_control=trueTurn-by-turn directions

This one turns on both controls:

The parameters page lists every option.

Troubleshoot

  • The frame is blank. List the exact host the page is served from: a subdomain is not covered by its parent. Keep the referrerpolicy attribute.
  • No itinerary shows. Publish it first: the embed shows only published content.
  • A control is missing. Your organization's security settings can turn it off for every embed.

Next steps

Last updated