Get started
Map Embedding

Iframe parameters

Iframe parameters

Everything about an embed is set through query parameters on the iframe src. This page is the complete reference, grouped by purpose. Every parameter is optional except the publishable key: a bare embed renders a default interactive map.

Where a parameter has a default, it follows a fixed precedence. The URL value wins; if it is absent, your organization's default for that field applies; if that is also unset, the built-in default below applies. Boolean parameters take the textual values true or false.

Credentials

publishable_key

string

required

Your publishable key (pk_…) with the embedding scope. It resolves your organization and authorizes the embed. Required: an embed without a resolvable publishable key renders a loader rather than a map.

session_token

string

A short-lived session token (sess_…). Required only when your organization enforces session tokens (require_session_token). See authentication.

Content selection

The content parameters choose what the map shows.

itinerary_id

string

The itinerary to display.

collection_id

string

A collection to display: the studio renders the itineraries and zones it contains. Pass it on its own for a map of the whole collection, or alongside itinerary_id to open that collection focused on one of its itineraries. Which of the two layers actually draws is decided by your organization, not by this URL: each is withheld server-side when your organization turns it off, and there is no query parameter that asks for either one. An embed can therefore render a collection with its zones and no itineraries, or the reverse.

zone_id

string

A zone to display on the map.

activity

string

The activity context for the map, as a wire-form slug (for example hikingandtrail). See the activities table.

Display

These parameters set the map's appearance and the initial camera.

terrain

string

default: topo

The basemap terrain slug. Defaults to topo when neither the URL nor your organization specifies one.

terrain_variant

string

default: light

The basemap tint, light or dark.

segments_color

string

One hex color for every itinerary segment, applied to the map lines, the start and end markers, and the elevation profile bands. Waypoint markers keep the colors they were given. Omit it to use your organization's default; pass it empty (segments_color=) to keep each segment's own color on this embed even when your organization sets one.

overlay

string

A single environmental overlay to show on load, by its slug (for example temperature-actual). See the overlays table.

enrichments

string[]

Enrichment overlays to stack on the map on load, each by its slug (for example hillshade). Pass each value as a repeated query parameter, like with_overlays. See the overlays table.

time_offset

number

The forecast time for weather and snow overlays, as a count of minutes from the viewer's current clock (negative is the past). It is clamped to the studio's forecast window, roughly 71 hours back to 6 days forward. Omitted means "now". The offset is relative on purpose, so a shared link to "+6 days" means six days from whoever opens it, not a frozen instant.

view

string

The initial camera, carried in the URL hash rather than the query string as #view=zoom/lat/lng, optionally with bearing and pitch (#view=zoom/lat/lng/bearing/pitch). The studio writes this hash as the viewer pans and zooms, so copying a live embed URL preserves the camera.

Viewer preferences

The preferred_* parameters set the embed's initial display preferences. Each is optional; when omitted, the studio falls back to your organization's default and then to a built-in default.

PreferenceParameterValues
Lengthpreferred_unit_lengthmetric, imperial
Slopepreferred_unit_slopedegrees, percentage
Temperaturepreferred_unit_temperaturecelsius, fahrenheit
Themepreferred_themelight, dark
Base-map tintterrain_variantlight, dark

These set the Map Embedding iframe's initial display preferences. Each is optional; when omitted, the studio falls back to your organization's defaults and then to a built-in default.

preferred_language

string

The locale for the studio's interface, one of en, fr, es, it, de, zh, ja. See the languages reference.

UI controls

The with_* parameters toggle which controls and panels appear. Each is a boolean; the default column is the value used when neither the URL nor your organization specifies one.

Map controls

with_navigation_control

boolean

default: true

The zoom and compass control.

with_overlays_control

boolean

default: false

The overlay picker, letting the viewer toggle environmental overlays.

with_preferences_control

boolean

default: true

The preferences control for units, language, and theme.

with_download_control

boolean

default: false

The download control for exporting the displayed content.

with_directions_control

boolean

default: false

The directions control.

with_streetview_control

boolean

default: false

The street view control.

Elevation and analysis panels

with_profile_elevation

boolean

default: true

The elevation profile chart.

with_profile_characteristics

boolean

default: true

The terrain characteristics breakdown (surface, way type).

with_profile_analysis

boolean

default: false

The slope and gradient analysis.

Allowlists

Two parameters take a list of slugs rather than a single value. Pass each value as a repeated query parameter, for example ?with_overlays=hillshade&with_overlays=steepness.

with_overlays

string[]

The overlays the viewer may choose from in the overlay picker. When omitted, your organization's default allowlist applies. See the overlays table for the slugs.

with_terrains

string[]

The basemap terrains the viewer may switch between. When omitted, your organization's default allowlist applies.

Activities

The activity parameter takes the lowercase, underscore-free wire form.

ActivityAPI valueWire formDirections
Hiking and trail runningHIKING_AND_TRAILhikingandtrailYes
Professional trailPROFESSIONAL_TRAILprofessionaltrailYes, off-network
RunningRUNNINGrunningYes
Backcountry skiingBACKCOUNTRY_SKIINGbackcountryskiingFreehand line only
Ski touringSKI_TOURINGskitouringYes, off-network
Cross-country skiingCROSS_COUNTRY_SKIINGcrosscountryskiingYes
Snowshoe walkingSNOWSHOE_WALKINGsnowshoewalkingYes
Gravel bikingGRAVEL_BIKEgravelbikeNot yet available
Mountain bikingMOUNTAIN_BIKEmountainbikeNot yet available
Road cyclingROAD_CYCLINGroadcyclingNot yet available

Each activity routes on a profile tuned to its terrain and movement style. Directions availability varies: most activities support turn-by-turn routing, backcountry skiing is freehand-line only, and cycling activities are not yet available for routing. The GraphQL ActivitySlug enum uses the uppercase value; the Map Studio and Tile APIs use the lowercase, underscore-free wire form.

Overlays

The overlay parameter and the with_overlays allowlist take these overlay slugs.

OverlayGroupDescription
poisTerrain enrichmentPoints of interest (huts, peaks, passes, parking, water) rendered as vector features.
hillshadeTerrain enrichmentShaded-relief hillshade derived from the digital elevation model.
temperature-actualWeatherForecast air temperature.
temperature-perceivedWeatherForecast perceived ("feels-like") temperature.
temperature-soilWeatherForecast soil-surface temperature.
visibilityWeatherForecast horizontal visibility.
humidityWeatherForecast relative humidity.
windWeatherForecast wind speed and direction.
steepnessSurfaceSlope steepness classification from 25° to 45°+.
aspectslopeSurfaceCombined slope aspect and steepness shading.
snowdepthSnowModelled snow depth on the ground.
snowfall-dailySnowForecast daily snowfall accumulation.
snowfall-hourlySnowForecast hourly snowfall accumulation.

Weather and snow overlays accept a timestamp query parameter to select a forecast step; static overlays (pois, hillshade, steepness, aspectslope) ignore it.

Next steps