Get started

Map Publishing

Map Publishing

Show your published itineraries, zones and collections outside your organization: on your own site, behind a share link, as a route file, or as a video.

The map above is a live embed of a published itinerary.

Before you start

  1. Allowed domains. The embed loads only on the sites listed under Organization → Security. Mountaya keeps that list: tell us every host you embed on, such as maps.example.com, and localhost:3000 to develop locally.
  2. A publishable key (pk_…) with the publishing scope, from Organization → API keys in the Mountaya app.
  3. Published content. The embed and share links show only what you publish.
  4. A session endpoint, if required. When your organization requires session tokens, your server mints one for the embed. See session tokens.

Publish an itinerary

An itinerary is edited as a draft. Publish it to show it outside your organization: Publish in Map Studio, or the Map Studio API.

Publish a zone

Zones publish the same way. A collection embed, or a collection's share link, shows the collection's zones that are published and public.

Embed the map

Paste one <iframe> on your site. Its query parameters choose the content and the controls, and postMessage events drive it once it has loaded.

A share link opens one published itinerary, or a collection, to whoever holds it, with no page of your own. Mint one in Map Studio or with the Map Studio API.

Download a route file

Visitors download a published itinerary from the embed as GPX, KML, KMZ, GeoJSON, FIT, TCX, or CSV. Your code exports the same files with the Map Studio API.

Export a video

Map Studio records an itinerary as a video, with its elevation profile in the frame. Embedded Studio offers the same flow: see export a video.

Or build the map yourself

Mountaya publishes two ways to put its map in your product, and they are different products that share a vocabulary.

Map Publishing serves the hosted embed: the studio's map in an iframe, configured by URL and authenticated with a publishable key. No build step, no React, no bundle: you paste one tag and the whole published map arrives.

@mountaya/elements-react is the same map as components in your own tree: your layout, your controls, your state, your bundle. You compose the map view, the control stack and the panels yourself, and an elevation profile or a route table renders with no map at all.

Choose the iframe when you want a map. Choose the elements when you want to build one.

Next steps

Last updated