update swisstopo maps

This commit is contained in:
vcoppe
2024-06-07 13:32:44 +02:00
parent 80180f7a41
commit 13c7574e25
2 changed files with 5 additions and 17 deletions

View File

@@ -74,23 +74,8 @@ export const basemaps: { [key: string]: string | Style; } = {
}],
},
linz: 'https://basemaps.linz.govt.nz/v1/tiles/topographic/EPSG:3857/style/topographic.json?api=d01fbtg0ar23gctac5m0jgyy2ds',
swisstopo: {
version: 8,
sources: {
swisstopo: {
type: 'raster',
tiles: ['https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.pixelkarte-farbe/default/current/3857/{z}/{x}/{y}.jpeg'],
tileSize: 256,
maxzoom: 18,
attribution: '&copy; <a href="https://www.swisstopo.admin.ch" target="_blank">swisstopo</a>'
}
},
layers: [{
id: 'swisstopo',
type: 'raster',
source: 'swisstopo',
}],
},
swisstopo: 'https://vectortiles.geo.admin.ch/styles/ch.swisstopo.basemap.vt/style.json',
swisstopoSatellite: 'https://vectortiles.geo.admin.ch/styles/ch.swisstopo.imagerybasemap.vt/style.json',
linzTopo: {
version: 8,
sources: {
@@ -474,6 +459,7 @@ export const basemapTree: LayerTreeType = {
},
switzerland: {
swisstopo: true,
swisstopoSatellite: true,
},
united_kingdom: {
ordnanceSurvey: true,
@@ -610,6 +596,7 @@ export const defaultBasemapTree: LayerTreeType = {
},
switzerland: {
swisstopo: false,
swisstopoSatellite: false,
},
united_kingdom: {
ordnanceSurvey: false,

View File

@@ -143,6 +143,7 @@
"linz": "LINZ Topo",
"linzTopo": "LINZ Topo50",
"swisstopo": "swisstopo",
"swisstopoSatellite": "swisstopo Satellite",
"ignFrPlan": "IGN Plan",
"ignFrScan25": "IGN SCAN25",
"ignFrSatellite": "IGN Satellite",