Give trail pages an outdoor map
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s

Trail maps now open on an outdoor style of our own, drawn on the same
OpenFreeMap tiles: hill shading and contour lines from the public
Terrain Tiles, woods, water, footpaths, and peaks with their heights.
Heights and contours follow the visitor's units. A switch on the map
goes back to the plain map and is remembered.

The home page's overview map is unchanged. If the elevation tiles or
the contour script fail, the map still loads without them.

The security policy allows the one elevation-tile path. The contour
add-on (maplibre-contour 0.1.1) is vendored with its licence, and the
elevation data is credited on the map, under it and in the footer.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-15 13:26:45 -07:00
1 parent 540a3220be
commit ad2223f427
15 files changed
+994 -27

No files matched your search

+16
View File
@@ -704,6 +704,22 @@ body:has(.hero--home) .site-header .wordmark { visibility: hidden; }
:root:not([data-theme="light"]) .maplibregl-ctrl-icon,
:root:not([data-theme="light"]) .maplibregl-ctrl-attrib-button { filter: invert(1); }
}
/* The Outdoor / Plain switch of a trail map (app.js basemapControl): two toggle
buttons side by side, top left, the pressed one in ink like a .seg choice. */
.maplibregl-ctrl-group.basemap-switch { display: flex; }
.maplibregl-ctrl-group.basemap-switch button {
inline-size: auto; block-size: auto; width: auto; height: auto;
min-block-size: 29px;
padding: 0 var(--space-2);
color: var(--ink-2);
font: 500 0.75rem/1 var(--font-sans);
}
.maplibregl-ctrl-group.basemap-switch button + button { border-block-start: 0; border-inline-start: 1px solid var(--rule); }
.maplibregl-ctrl-group.basemap-switch button[aria-pressed="true"]:not(:disabled) { background: var(--ink); color: var(--paper); font-weight: 600; }
.maplibregl-ctrl-group.basemap-switch button[aria-pressed="true"]:focus-visible { outline-color: var(--paper); }
@media (pointer: coarse) {
.maplibregl-ctrl-group.basemap-switch button { min-block-size: 2.75rem; padding: 0 var(--space-3); }
}
.maplibregl-ctrl-scale {
background: color-mix(in srgb, var(--surface) 88%, transparent) !important;
border-color: var(--ink) !important;