Embed URL parameters

The iframe URL is https://maps.siemens-cdn.com/maps/embed/v1/<mode>?<parameters>, the same as Google’s Embed API. This table is generated from the samples, so every parameter listed here has a live example.

Modes

ModePathRequired
place/maps/embed/v1/place, alias /embed/placeq
view/maps/embed/v1/viewcenter
search/maps/embed/v1/searchq
directions/maps/embed/v1/directionsorigin, destination

All parameters

NameModesRequiredValuesNotes
avoiddirectionsnotolls, ferries, highwaystolls and ferries shape driving routes. highways is not available and says so. Samples: Directions
cardplacenononeExtension, not in Google’s API. card=none hides the place card over the map; without it the card shows. Samples: Map without the place card
centerplace, search, viewplace: no, view: yes"lat,lng"Map center. Overrides the marker position as center in place mode. Samples: Place by coordinates, View: a map without a marker, Search
colorSchemeplacenoauto, light, darkNot in Google’s embed. auto (default) follows the visitor’s light or dark setting and switches live; light and dark fix it, for example to match your section. Samples: Dark and light host pages, Map styles, light and dark
controlsplace, viewnolayers, nonenone hides the Layers button. Default layers: the button is shown. Samples: Layers: satellite, relief, 3D and globe
daynightplace, viewno1Shades night and the civil, nautical and astronomical twilight bands, computed in the browser from the visitor’s clock, refreshed every minute. Flat or on the globe. Samples: Globe, day and night
destinationdirectionsyes"lat,lng" or an addressEnd of the route, marked with the pin. Samples: Directions
keydirections, place, search, viewnoanyAccepted and ignored. There is no API key; drop it when you migrate. Samples: Place by coordinates, Place by address, View: a map without a marker, Search, Place by business name, Directions, Use case: partner profile
languagedirections, place, viewnoBCP 47 tag, e.g. de, ja, zh-HantLabel language where the basemap has one, else local names. Default: the browser language. Samples: View: a map without a marker, Directions, Language and region
layersplace, viewnorelief, 3d (comma list)Switched on at start. relief shades the terrain; 3d raises terrain and buildings and tilts the view. Unknown entries are ignored. Samples: Layers: satellite, relief, 3D and globe
maptypeplace, viewnoroadmap, satellite, hybridroadmap is the street map. satellite is aerial imagery (AWS, HERE). hybrid adds street and place labels on top. Directions always use roadmap. Samples: View: a map without a marker, Map type, Globe, day and night, Layers: satellite, relief, 3D and globe
modedirectionsnodriving, walking, transit, bicycling, flyingdriving (the default) and walking get a route. The others show the stops and a visible notice. Samples: Directions
origindirectionsyes"lat,lng" or an addressStart of the route. An address is resolved by our /geocode, like q in place mode. Samples: Directions
overlayviewnoa layer id, or several as a comma list (up to 5)Draws each published layer above the street map and below its labels. Unknown ids are ignored with one console warning. Samples: Your own data on the map
overlayoffviewnolayer ids (comma list)Layers that start switched off. The Layers button writes it when a visitor turns a layer off. Samples: Your own data on the map
projectionplace, viewnomercator, globeglobe draws a sphere with an atmosphere up to continent zoom and turns into the flat map from about country zoom (Google zoom 9) on. Default mercator. Samples: Globe, day and night, Layers: satellite, relief, 3D and globe
qplaceyes"lat,lng" or an addressCoordinates are drawn directly. An address is resolved once by our /geocode and cached. Samples: Place by coordinates, Place by address, Place by business name, Missing or invalid locations, Use case: partner profile
qsearchyesfree textUp to 10 places from Amazon Location, as markers and a list in the card. Selecting one shows it in the card. Samples: Search
regionplace, search, viewnoCLDR region, e.g. jpBiases geocoding and search to that country, as on Google. Borders do not change with it. Samples: Search, Place by business name, Language and region
spaceplace, viewnostars, noneA dark star field behind the zoomed-out globe, fading out as you zoom in. On by default with projection=globe; space=none turns it off. Samples: Globe, day and night
styleplacenosiemens, minimal, contrast, boldNot in Google’s embed. siemens (default) is Sand & Petrol by day and Deep Blue by night; minimal is quiet for maps that carry their own data; contrast keeps every label at 7:1 or more; bold is for showcases. Short forms like siemens-dark set the scheme too. Unknown values show siemens. Samples: Map styles, light and dark
unitsdirectionsnometric, imperialWithout it: miles for US, GB, LR and MM (from region or the language), else kilometers. Samples: Directions
waypointsdirectionsnoplaces separated by |Up to 20 stops in between, lettered B, C, ... on the map. Samples: Directions
zoomdirections, place, search, viewno0 to 21Google's zoom scale. Default 15. Out-of-range values are clamped, fractions floored. Samples: Place by coordinates, Place by address, View: a map without a marker, Search, Directions, Zoom levels

Messages from the embedding page

MessageEffect
{ type: 'siemens-maps:color-scheme', scheme: 'light' | 'dark' | 'auto' }A page with its own theme switch sets the scheme of a colorScheme=auto map; auto returns to the visitor’s setting. Only from the direct parent; maps with a fixed scheme ignore it. See styles and dark mode.

Tours

tour=<path of a tour file on this host> or #tour=<compressed tour> plays a tour; autoplay=0 starts it paused. See map tours and the tour format.