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

Sample layout of a partner detail section.

Code

Partner component: mapSrc changes, mapQuery stays
  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;  };
Response headers of your page: frame-src
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
JSX, unchanged
<iframe
  src={mapSrc(partner)}
  title="Partner location map"
  loading="lazy"
  referrerPolicy="no-referrer-when-downgrade"
  style={{ border: 0 }}
/>
The iframe it renders for this partner
<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

NameRequiredValuesNotes
qyes"lat,lng" or an addressCoordinates are drawn directly. An address is resolved once by our /geocode and cached.
keynoanyAccepted 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.

iframe before and after
  <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>
Response header of your page
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.com to frame-src of 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.com can leave frame-src once 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).