Ściežka

Embed Widget Documentation

Embed an interactive bike & hiking route map on any website

Add any public Ściežka cycling, gravel, bikepacking, or hiking route to a blog post, club event calendar, race handbook, or static documentation page with a single HTML <iframe> tag. Visitors get vector map zoom, cooperative scroll protection, surface and slope gradient coloring, an interactive elevation chart, checkpoint pins, multi-day stage tabs, and a direct link back to inspect cues or export GPX files—with zero host-page JavaScript dependencies or API keys.

Start planning Explore community routes

Live interactive demo

Try the actual widget below with a real Discover gravel route (108 km, 1,168 m gain, 11 checkpoints). Switch Elevation, Checkpoints, or Route color modes in the bottom dock.

Live Discover route embedded with ?theme=auto&interact=auto&color=surface · Open full Eclair Gravel Ride page & GPX
Embed query string parameters & snippet options (/embed/r/:slug)
ParameterAccepted ValuesDefaultBehavior
themeauto | light | darkautoFollows the visitor’s OS/browser color scheme when set to auto, or pins light Stone or dark Graphite map and glass UI tokens.
langen | pl | beBrowser localeSets widget labels, controls, elevation metrics, and surface names to English, Polish, or Belarusian.
interactauto | clickautoauto initializes WebGL lazily via IntersectionObserver (~200px viewport margin); click renders a static preview card with zero WebGL or map tiles until clicked.
panelnone | elevation | poisnoneControls which bottom glass sheet opens on initial load: clean map only (none), interactive elevation graph (elevation), or checkpoint ribbon (pois).
elevation1 | 01Enables or hides the interactive Elevation sheet toggle button (auto-hidden when route coordinates contain no altitude data).
pois1 | 01Enables or hides route waypoint/checkpoint pins on the map and the expandable Checkpoints ribbon.
gpx1 | 01Shows or hides the GPX link-out action that opens the canonical route page on scezka.com for GPX export, cue sheets, and GPS sync.
km1 | 00Draws distance kilometer markers along the active route line (per-stage distance markers when a single multi-day stage is selected).
colorsolid | surface | gradientsolidInitial route line styling: classic solid track accent, OpenStreetMap surface type segmentation, or smoothed slope gradient colors.
credit1 | 01Snippet generator flag adding a small semantic <figcaption> link under the <iframe> to attribute the route page and preserve canonical SEO link equity.
height (HTML attribute)240–900 px440 pxRecommended responsive CSS height on the <iframe> element; adapts cleanly down to 320px mobile viewports.

Quick start: copy and paste a live route embed

Any public route published in the Ściežka community catalog has a dedicated read-only embed endpoint at /embed/r/{slug}. You do not need to write configuration JavaScript or manage vector tile keys: configure colors, theme, language, and open panel directly from the Share → Embed panel on any public route page, or build the query string manually using the parameter table above.

Wrapping the <iframe> in a semantic <figure> with loading="lazy" and an optional <figcaption> route link keeps both host layout semantics and route attribution crystal clear.

Standard lazy-loaded interactive route embed with semantic route credit
<figure style="margin:0">
  <iframe
    src="https://scezka.com/embed/r/vano-coffe-ride-83-1-km-540m-ridden-81d497b14643?theme=auto&amp;interact=auto&amp;panel=none&amp;color=solid"
    title="Vano Coffee Ride (83.1 km · 540 m up) — Ściežka"
    width="100%"
    height="440"
    loading="lazy"
    style="border:0;border-radius:12px;display:block"
    allowfullscreen
    referrerpolicy="strict-origin-when-cross-origin"
  ></iframe>
  <figcaption style="margin-top:6px;font:12px/1.4 system-ui,sans-serif;color:#52605a">
    <a href="https://scezka.com/r/vano-coffe-ride-83-1-km-540m-ridden-81d497b14643?utm_source=embed&amp;utm_medium=iframe" target="_blank" rel="noopener">Vano Coffee Ride — View full stats &amp; GPX on Ściežka</a>
  </figcaption>
</figure>

Performance optimization for blogs and multi-route event calendars

Embedding ten interactive WebGL maps on a single brevet calendar or bikepacking stage guide can quickly exhaust browser GPU contexts and starve mobile CPUs if every map boots eagerly on initial page load. Ściežka’s embed widget is engineered specifically to avoid weighing down host pages.

When interact=auto is used alongside native iframe loading="lazy", the embed delays loading MapLibre GL, its Web Worker, and vector tiles until the iframe approaches the visitor’s viewport. Inside the widget, typography uses the visitor’s native system UI font stack (zero custom webfont downloads), GPU tile cache is capped, tile fade animations and inertial rotation are disabled, and elevation arrays are only parsed when the user opens the Elevation chart or selects Gradient coloring.

For pages with 4 or more embedded routes—such as an Audax brevet series calendar, club ride archive, or stage-by-stage race guide—use interact=click. In click mode, each embed initially renders an ultra-lightweight preview card with route title, distance, elevation gain, Interactive Map button, and GPX link, creating zero WebGL contexts and making zero map tile requests until clicked.

Lightweight click-to-load embed for multi-route calendars (zero WebGL until clicked)
<iframe
  src="https://scezka.com/embed/r/eclair-gravel-ride-17d14f20e536?interact=click&amp;color=surface&amp;theme=auto"
  title="Eclair Gravel Ride — Ściežka"
  width="100%"
  height="380"
  loading="lazy"
  style="border:0;border-radius:12px;display:block"
  allowfullscreen
></iframe>
Live click-to-load Discover route (?interact=click): zero WebGL context or map tiles loaded until clicked · Open Vano & Coffee Ride (83 km · 8 POIs)

Interactive overlays, multi-day stages, and GPX handoff

By default (panel=none), the map opens clean with only a floating title/metrics card in the top-left corner, a Ściežka brand link in the top-right corner, and a compact bottom control dock. Clicking Elevation, Checkpoints, or the route line style switcher opens one bottom glass layer at a time so widgets never collide on mobile screens.

For multi-day routes created in the Trip Planner, stage selector chips appear automatically inside the floating route card. Selecting a specific day highlights its stage track over dimmed context geometry, updates distance/ascent telemetry, recalculates the stage elevation curve, and focuses the map camera automatically. All GPX action links direct riders to the canonical route page on scezka.com with UTM context so they can inspect turn-by-turn roadbooks, download GPX files without paywalls, or send the course to their GPS head unit.

Security, privacy, CSP, and CMS compatibility

Embed frames send strict security headers and permit framing over encrypted HTTPS origins (frame-ancestors https:). If a host page wraps the iframe with a restrictive sandbox attribute that strips same-origin access (opaque null origin), the widget automatically displays a crisp fallback card linking straight to the canonical route page instead of failing silently.

Only intentionally published, moderation-approved public community routes can be embedded. Private user routes, unlisted share tokens, and activities imported from Strava or wearable fitness integrations are strictly excluded from public embed endpoints and never appear in iframes.

Frequently asked questions

Is embedding a Ściežka route map free, and do I need an API key?

Yes, embedding public community routes is completely free and requires no API key, billing account, or JavaScript SDK.

Will embedding several maps slow down my blog or event page?

No, provided you follow the multi-route guidelines: keep loading="lazy" on every iframe and pass interact=click on pages with 4 or more routes so WebGL and map tiles only load when a reader chooses to inspect that specific map.

Can I embed my private routes or imported Strava rides?

No. Only moderation-approved, non-Strava routes intentionally published to the public Community Routes catalog are accessible at /embed/r/:slug.

What happens if a reader opens the embedded route from a smartphone?

The embed UI adapts down to 320px width, using two-finger cooperative panning so page scrolling stays natural, collapsing attribution controls cleanly, and keeping only one bottom panel (Elevation, Checkpoints, or Color) open at a time.

How do website visitors download the GPX file from an embedded map?

Clicking GPX in the bottom dock or on the preview card opens the canonical public route page on scezka.com in a new tab, where riders can download clean GPX 1.1 tracks, view cue sheets, or sync to GPS computers for free.

Zero-Ad, Privacy-First Architecture · OpenStreetMap ODbL & NASA SRTM 30m Elevation Telemetry · About Ściežka