Use case: partner profile
A partner detail section with address and map. Example: 24 VISION, an address without coordinates.
Live map
Partner
24 VISION
Riegrova 832
738 01 Frýdek-Místek - Místek
Czechia
Code
mapQuery = ({ address, latitude, longitude }) => latitude != null && longitude != null ? `${latitude},${longitude}` : address || null; mapSrc = (partner) => { const q = mapQuery(partner);Removed: - return q ? `https://www.google.com/maps/embed/v1/place?key=${GOOGLE_MAPS_API_KEY}&q=${encodeURIComponent(q)}` : null;Added: + return q ? `https://maps.siemens-cdn.com/maps/embed/v1/place?q=${encodeURIComponent(q)}` : null; };
Removed: - Content-Security-Policy: default-src 'self'; frame-src 'self' https://www.google.comRemoved: - Content-Security-Policy-Report-Only: default-src 'self'; frame-src 'self' https://www.google.comAdded: + Content-Security-Policy: default-src 'self'; frame-src 'self' https://maps.siemens-cdn.comAdded: + Content-Security-Policy-Report-Only: default-src 'self'; frame-src 'self' https://maps.siemens-cdn.com
<iframe
src={mapSrc(partner)}
title="Partner location map"
loading="lazy"
referrerPolicy="no-referrer-when-downgrade"
style={{ border: 0 }}
/>
<iframe
src="https://maps.siemens-cdn.com/maps/embed/v1/place?q=Riegrova%20832,%20738%2001%20Fr%C3%BDdek-M%C3%ADstek%20-%20M%C3%ADstek,%20Czechia"
title="Partner location map"
width="600"
height="450"
style="border:0"
loading="lazy"
allowfullscreen
referrerpolicy="no-referrer-when-downgrade"></iframe>
Every map follows the visitor’s light or dark setting by default (colorScheme=auto). On these pages it follows the docs theme switch too.
Parameters
| Name | Required | Values | Notes |
|---|---|---|---|
q | yes | "lat,lng" or an address | Coordinates are drawn directly. An address is resolved once by our /geocode and cached. |
key | no | any | Accepted and ignored. There is no API key; drop it when you migrate. |
Every parameter: embed URL reference.
Migrating from Google
Only the src line changes: the host becomes https://maps.siemens-cdn.com and key goes. Every other attribute and parameter stays identical. Then swap www.google.com for https://maps.siemens-cdn.com in your page’s frame-src, in the enforced and in the report-only policy. Full migration guide.
<iframeRemoved: - src="https://www.google.com/maps/embed/v1/place?key=API_KEY&q=Riegrova%20832,%20738%2001%20Fr%C3%BDdek-M%C3%ADstek%20-%20M%C3%ADstek,%20Czechia"Added: + src="https://maps.siemens-cdn.com/maps/embed/v1/place?q=Riegrova%20832,%20738%2001%20Fr%C3%BDdek-M%C3%ADstek%20-%20M%C3%ADstek,%20Czechia" title="Partner location map" width="600" height="450" style="border:0" loading="lazy" allowfullscreen referrerpolicy="no-referrer-when-downgrade"></iframe>
Removed: - Content-Security-Policy: default-src 'self'; frame-src 'self' https://www.google.comRemoved: - Content-Security-Policy-Report-Only: default-src 'self'; frame-src 'self' https://www.google.comAdded: + Content-Security-Policy: default-src 'self'; frame-src 'self' https://maps.siemens-cdn.comAdded: + Content-Security-Policy-Report-Only: default-src 'self'; frame-src 'self' https://maps.siemens-cdn.com
Notes
- Same query as before: send coordinates when the partner record has them and the address otherwise. Only the host in the iframe URL changes and the key is dropped.
- Add
https://maps.siemens-cdn.comtoframe-srcof the enforced CSP and, if your site sends one, of the report-only CSP: a report-only policy without the host reports every map load and blocks it once enforced.www.google.comcan leaveframe-srconce no page uses it. - The iframe keeps
loading="lazy", its title and its CSS: full width with a 300 px minimum height from 768 px up, 16:9 below. - Siemens teams: the change for the siemens.com partner component is in the internal documentation.
- The map first shows a static image with the pin and the card, and loads the interactive map on the first click, tap, wheel, key or focus. Lighthouse on this embed at the partner frame size, median of three runs on 2026-12-01, before and after: mobile (412 x 232) 1,200 KiB and 24 requests become 135 KiB and 8, blocking time 2,220 ms becomes 0, score 72 becomes 100; desktop (696 x 300) 1,187 KiB and 24 requests become 201 KiB and 9, blocking time 389 ms becomes 0, score 83 becomes 100. LCP moves from 0.76 to 0.91 s on mobile and from 0.21 to 0.41 s on desktop: the image is now the largest element, while before only the card text counted (a map canvas is never an LCP candidate).