From 41d5fa4efca71b3112254faf5e2b4ca55957cdf2 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Thu, 6 Jun 2024 12:52:00 +0200 Subject: [PATCH] swisstopo ski touring layer --- website/src/lib/assets/layers.ts | 10 ++++++++++ website/src/locales/en.json | 1 + 2 files changed, 11 insertions(+) diff --git a/website/src/lib/assets/layers.ts b/website/src/lib/assets/layers.ts index d9b1a2d7..8df3c0f9 100644 --- a/website/src/lib/assets/layers.ts +++ b/website/src/lib/assets/layers.ts @@ -316,6 +316,13 @@ export const overlays: { [key: string]: AnySourceData; } = { maxzoom: 18, attribution: '© swisstopo' }, + swisstopoSkiTouring: { + type: 'raster', + tiles: ['https://wmts.geo.admin.ch/1.0.0/ch.swisstopo-karto.skitouren/default/current/3857/{z}/{x}/{y}.png'], + tileSize: 256, + maxzoom: 17, + attribution: '© swisstopo' + }, ignFrCadastre: { type: 'raster', tiles: ['https://data.geopf.fr/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&TILEMATRIXSET=PM&TILEMATRIX={z}&TILECOL={x}&TILEROW={y}&LAYER=CADASTRALPARCELS.PARCELS&FORMAT=image/png&STYLE=normal'], @@ -464,6 +471,7 @@ export const overlayTree: LayerTreeType = { swisstopoSlope: true, swisstopoCycling: true, swisstopoMountainBike: true, + swisstopoSkiTouring: true, } }, }, @@ -498,6 +506,7 @@ export const defaultOverlays = { swisstopoSlope: false, swisstopoCycling: false, swisstopoMountainBike: false, + swisstopoSkiTouring: false, } }, }, @@ -578,6 +587,7 @@ export const defaultOverlayTree: LayerTreeType = { swisstopoSlope: false, swisstopoCycling: false, swisstopoMountainBike: false, + swisstopoSkiTouring: false, } }, } diff --git a/website/src/locales/en.json b/website/src/locales/en.json index 0ad095e8..9b50dae8 100644 --- a/website/src/locales/en.json +++ b/website/src/locales/en.json @@ -156,6 +156,7 @@ "swisstopoSlope": "swisstopo Slope", "swisstopoCycling": "swisstopo Cycling", "swisstopoMountainBike": "swisstopo MTB", + "swisstopoSkiTouring": "swisstopo Ski Touring", "ignFrCadastre": "IGN Cadastre", "ignSlope": "IGN Slope", "ignSkiTouring": "IGN Ski Touring",