diff --git a/package.json b/package.json index 2f4e61c1..e0177882 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homepage", - "version": "1.79.0", + "version": "1.79.1", "private": true, "type": "module", "scripts": { diff --git a/src/lib/components/hikes/HikeMap.svelte b/src/lib/components/hikes/HikeMap.svelte index 50bd2b50..6d956ffc 100644 --- a/src/lib/components/hikes/HikeMap.svelte +++ b/src/lib/components/hikes/HikeMap.svelte @@ -140,7 +140,10 @@ const latLngs: [number, number][] = track.map((p) => [p[1], p[0]]); const map = L.map(node, { - attributionControl: true, + // On-map attribution control removed for a cleaner frame; the + // required swisstopo credit is repeated in the page's meta footer + // ("Kartendaten © swisstopo"). + attributionControl: false, zoomControl: true, preferCanvas: true }); diff --git a/src/lib/components/hikes/HikesOverviewMap.svelte b/src/lib/components/hikes/HikesOverviewMap.svelte index b0b233a2..c316831c 100644 --- a/src/lib/components/hikes/HikesOverviewMap.svelte +++ b/src/lib/components/hikes/HikesOverviewMap.svelte @@ -103,7 +103,10 @@ // hovered/clicked from a comfortable margin instead of demanding a // pixel-perfect click on the 4 px line. const map = L.map(node, { - attributionControl: true, + // On-map attribution control removed for a cleaner frame. + // NOTE: swisstopo's tile licence requires their credit to appear; + // the /hikes page currently shows no other swisstopo attribution. + attributionControl: false, zoomControl: true, preferCanvas: true, renderer: L.canvas({ tolerance: 12 }) diff --git a/src/routes/hikes/+page.svelte b/src/routes/hikes/+page.svelte index dfbab9e4..180f94da 100644 --- a/src/routes/hikes/+page.svelte +++ b/src/routes/hikes/+page.svelte @@ -229,6 +229,16 @@ {/each} {/if} + + + @@ -335,6 +345,27 @@ padding: 3rem 1rem; } + /* Tiny, muted map-licence credit at the very bottom of the listing. */ + .map-credit { + margin-top: 2.5rem; + padding: 0 1rem; + text-align: center; + font-size: 0.72rem; + color: var(--color-text-tertiary); + } + + .map-credit a { + color: inherit; + text-decoration: underline; + text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); + text-underline-offset: 0.18em; + transition: color var(--transition-fast); + } + + .map-credit a:hover { + color: var(--color-primary); + } + @media (max-width: 560px) { .grid { grid-template-columns: 1fr;