Add TopoSvalbard base map

pull/12/head^2
Manuel Kasper 2022-05-04 13:25:51 +02:00
rodzic 9b3335b549
commit 057c3b2d30
7 zmienionych plików z 15926 dodań i 29 usunięć

15566
package-lock.json wygenerowano

Plik diff jest za duży Load Diff

Wyświetl plik

@ -18,14 +18,16 @@
],
"tileSize": 256,
"minzoom": 0,
"maxzoom": 19
"maxzoom": 19,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"hiking_trails_raster": {
"type": "raster",
"tiles": [
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swisstlm3d-wanderwege/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256
"tileSize": 256,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"skiing_trails_raster": {
"type": "raster",
@ -33,7 +35,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo-karto.skitouren/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 17
"maxzoom": 17,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"snowshoe_trails_raster": {
"type": "raster",
@ -41,7 +44,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo-karto.schneeschuhrouten/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 17
"maxzoom": 17,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"wildlife_areas": {
"type": "raster",
@ -49,7 +53,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.bafu.wrz-wildruhezonen_portal/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 18
"maxzoom": 18,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"wildlife_reserves": {
"type": "raster",
@ -57,7 +62,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.bafu.wrz-jagdbanngebiete_select/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 18
"maxzoom": 18,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"slope_classes": {
"type": "raster",
@ -65,7 +71,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.hangneigung-ueber_30/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 14
"maxzoom": 14,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"summits": {
"type": "vector",

Wyświetl plik

@ -13,7 +13,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swissimage/default/current/3857/{z}/{x}/{y}.jpeg"
],
"tileSize": 256,
"maxzoom": 19
"maxzoom": 19,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"hiking_trails_raster": {
"type": "raster",
@ -21,7 +22,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swisstlm3d-wanderwege/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 18
"maxzoom": 18,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"skiing_trails_raster": {
"type": "raster",
@ -29,7 +31,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo-karto.skitouren/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 17
"maxzoom": 17,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"snowshoe_trails_raster": {
"type": "raster",
@ -37,7 +40,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo-karto.schneeschuhrouten/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 17
"maxzoom": 17,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"wildlife_areas": {
"type": "raster",
@ -45,7 +49,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.bafu.wrz-wildruhezonen_portal/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 18
"maxzoom": 18,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"wildlife_reserves": {
"type": "raster",
@ -53,7 +58,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.bafu.wrz-jagdbanngebiete_select/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 18
"maxzoom": 18,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"slope_classes": {
"type": "raster",
@ -61,7 +67,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.hangneigung-ueber_30/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 14
"maxzoom": 14,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"summits": {
"type": "vector",

Wyświetl plik

@ -13,7 +13,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.pixelkarte-farbe/default/current/3857/{z}/{x}/{y}.jpeg"
],
"tileSize": 256,
"maxzoom": 19
"maxzoom": 19,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"hiking_trails_raster": {
"type": "raster",
@ -21,7 +22,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swisstlm3d-wanderwege/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 18
"maxzoom": 18,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"skiing_trails_raster": {
"type": "raster",
@ -29,7 +31,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo-karto.skitouren/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 17
"maxzoom": 17,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"snowshoe_trails_raster": {
"type": "raster",
@ -37,7 +40,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo-karto.schneeschuhrouten/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 17
"maxzoom": 17,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"wildlife_areas": {
"type": "raster",
@ -45,7 +49,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.bafu.wrz-wildruhezonen_portal/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 18
"maxzoom": 18,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"wildlife_reserves": {
"type": "raster",
@ -53,7 +58,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.bafu.wrz-jagdbanngebiete_select/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 18
"maxzoom": 18,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"slope_classes": {
"type": "raster",
@ -61,7 +67,8 @@
"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.hangneigung-ueber_30/default/current/3857/{z}/{x}/{y}.png"
],
"tileSize": 256,
"maxzoom": 14
"maxzoom": 14,
"bounds": [5.140242, 45.398181, 11.47757, 48.230651]
},
"summits": {
"type": "vector",

Wyświetl plik

@ -0,0 +1,312 @@
{
"version": 8,
"name": "toposvalbard",
"metadata": {"maputnik:renderer": "mbgljs", "openmaptiles:version": "3.x"},
"center": [16.765892, 78.112112],
"zoom": 6,
"bearing": 0,
"pitch": 0,
"sources": {
"toposvalbard": {
"type": "raster",
"tiles": [
"https://geodata.npolar.no/arcgis/rest/services/Basisdata/NP_Basiskart_Svalbard_WMTS_3857/MapServer/tile/{z}/{y}/{x}"
],
"tileSize": 256,
"maxzoom": 13,
"bounds": [7.4670, 73.7357, 36.0502, 81.1569]
},
"summits": {
"type": "vector",
"url": "https://1.{mapServer}.map.sotl.as/data/summits.json"
},
"summits_inactive": {
"type": "vector",
"url": "https://1.{mapServer}.map.sotl.as/data/summits_inactive.json"
},
"regions": {
"type": "vector",
"url": "https://1.{mapServer}.map.sotl.as/data/regions.json"
},
"az": {
"type": "vector",
"url": "https://1.{mapServer}.map.sotl.as/data/az.json"
}
},
"sprite": "https://sotl.as/sprites",
"glyphs": "https://0.{mapServer}.map.sotl.as/fonts/{fontstack}/{range}.pbf",
"transition": {},
"layers": [
{
"id": "background",
"type": "background",
"layout": {"visibility": "visible"},
"paint": {"background-color": "rgba(255, 255, 255, 1)"}
},
{
"id": "toposvalbard",
"type": "raster",
"source": "toposvalbard",
"layout": {"visibility": "visible"},
"paint": {
"raster-opacity": 0.75,
"raster-resampling": "linear"
}
},
{
"id": "summits_az",
"type": "fill",
"metadata": {
"sotlas-map-option": "az"
},
"source": "az",
"source-layer": "az",
"layout": {"visibility": "none"},
"minzoom": 12,
"paint": {
"fill-antialias": false,
"fill-color": "rgba(255, 255, 0, 1)",
"fill-opacity": {"stops": [[12, 0], [12.5, 0.5]]}
}
},
{
"id": "summits_az_border",
"type": "line",
"metadata": {
"sotlas-map-option": "az"
},
"source": "az",
"source-layer": "az",
"layout": {"visibility": "none"},
"minzoom": 12,
"paint": {
"line-color": "rgba(235, 196, 0, 1)",
"line-opacity": {"stops": [[12, 0], [12.5, 0.5]]},
"line-width": {"stops": [[12, 1], [16, 3]]}
}
},
{
"id": "summits_selected",
"type": "circle",
"source": "summits",
"source-layer": "summits",
"filter": ["all", ["in", "code"]],
"layout": {"visibility": "visible"},
"paint": {
"circle-color": "rgba(2, 153, 243, 1)",
"circle-radius": {"stops": [[6, 15], [20, 50]]},
"circle-opacity": 0.75,
"circle-stroke-color": "rgba(210, 255, 0, 0.05)",
"circle-stroke-width": 0,
"circle-stroke-opacity": 1,
"circle-blur": 0.7
}
},
{
"id": "summits_names",
"type": "symbol",
"source": "summits",
"source-layer": "summits",
"minzoom": 10,
"maxzoom": 24,
"filter": ["all", ["in", "code"]],
"layout": {
"visibility": "visible",
"text-field": "{name}\n{code}\n{alt} m",
"text-size": {"stops": [[10, 10], [20, 16]]},
"text-font": ["Frutiger Neue Regular"],
"text-anchor": "bottom",
"text-offset": {"stops": [[10, [0, -1]], [20, [0, -2]]]},
"icon-size": 1,
"symbol-spacing": 250,
"symbol-avoid-edges": false,
"text-keep-upright": true,
"text-transform": "none",
"text-optional": false,
"text-allow-overlap": {"stops": [[18, false], [19, true]]},
"text-ignore-placement": false,
"text-justify": "center",
"text-rotate": 0
},
"paint": {
"text-color": "rgba(51, 51, 51, 1)",
"text-halo-color": "rgba(255, 255, 255, 1)",
"text-halo-width": 1,
"text-halo-blur": 1
}
},
{
"id": "summits_circles",
"type": "circle",
"source": "summits",
"source-layer": "summits",
"filter": ["all", ["in", "code"]],
"layout": {"visibility": "visible"},
"paint": {
"circle-stroke-color": "rgba(255, 255, 255, 1)",
"circle-color": [
"match",
["get", "points"],
[1],
"rgba(77, 122, 32, 1)",
[2],
"rgba(109, 165, 54, 1)",
[4],
"rgba(174, 167, 39, 1)",
[6],
"rgba(239, 168, 24, 1)",
[8],
"rgba(220, 93, 4, 1)",
[10],
"rgba(200, 16, 30, 1)",
"#000"
],
"circle-stroke-width": {"stops": [[4, 0], [15, 2]]},
"circle-radius": {"stops": [[0, 0.1], [10, 8], [22, 20]]}
}
},
{
"id": "summits_activations",
"type": "symbol",
"source": "summits",
"source-layer": "summits",
"minzoom": 10,
"maxzoom": 24,
"filter": ["all", ["in", "code"]],
"layout": {
"text-field": "{act}",
"text-font": ["Frutiger Neue Bold"],
"text-size": {"stops": [[10, 8], [20, 16]]},
"text-offset": [0,0.1]
},
"paint": {"text-color": "rgba(255, 255, 255, 1)"}
},
{
"id": "summits_highlight",
"type": "circle",
"source": "summits",
"source-layer": "summits",
"filter": ["all", ["in", "code"]],
"layout": {"visibility": "visible"},
"paint": {
"circle-color": "rgba(2, 243, 198, 1)",
"circle-radius": {"stops": [[6, 15], [20, 50]]},
"circle-opacity": 0.75,
"circle-stroke-color": "rgba(210, 255, 0, 0.05)",
"circle-stroke-width": 0,
"circle-stroke-opacity": 1,
"circle-blur": 0.7
}
},
{
"id": "summits_inactive_names",
"type": "symbol",
"metadata": {
"sotlas-map-option": "inactive"
},
"source": "summits_inactive",
"source-layer": "summits_inactive",
"minzoom": 10,
"maxzoom": 24,
"filter": ["all", ["in", "code"]],
"layout": {
"visibility": "none",
"text-field": "{name}\n{code}\n{alt} m\n(inactive)",
"text-size": {"stops": [[10, 10], [20, 16]]},
"text-font": ["Frutiger Neue Regular"],
"text-anchor": "bottom",
"text-offset": {"stops": [[10, [0, -1]], [20, [0, -2]]]},
"icon-size": 1,
"symbol-spacing": 250,
"symbol-avoid-edges": false,
"text-keep-upright": true,
"text-transform": "none",
"text-optional": false,
"text-allow-overlap": {"stops": [[18, false], [19, true]]},
"text-ignore-placement": false,
"text-justify": "center",
"text-rotate": 0
},
"paint": {
"text-color": "rgba(51, 51, 51, 1)",
"text-halo-color": "rgba(255, 255, 255, 1)",
"text-halo-width": 1,
"text-halo-blur": 1,
"text-opacity": 1
}
},
{
"id": "summits_inactive_circles",
"type": "circle",
"metadata": {
"sotlas-map-option": "inactive"
},
"source": "summits_inactive",
"source-layer": "summits_inactive",
"filter": ["all", ["in", "code"]],
"layout": {"visibility": "none"},
"paint": {
"circle-stroke-color": "rgba(255, 255, 255, 1)",
"circle-color": [
"match",
["get", "points"],
[1],
"rgba(77, 122, 32, 0.5)",
[2],
"rgba(109, 165, 54, 0.5)",
[4],
"rgba(174, 167, 39, 0.5)",
[6],
"rgba(239, 168, 24, 0.5)",
[8],
"rgba(220, 93, 4, 0.5)",
[10],
"rgba(200, 16, 30, 0.5)",
"#000"
],
"circle-stroke-width": {"stops": [[4, 0], [15, 2]]},
"circle-radius": {"stops": [[0, 0.1], [10, 8], [22, 20]]}
}
},
{
"id": "regions_areas",
"type": "fill",
"metadata": {
"sotlas-map-option": "regions"
},
"source": "regions",
"source-layer": "areas",
"minzoom": 0,
"layout": {"visibility": "none"},
"paint": {
"fill-opacity": 0.1,
"fill-antialias": false,
"fill-color": "rgba(0, 0, 0, 1)"
}
},
{
"id": "regions_labels",
"type": "symbol",
"metadata": {
"sotlas-map-option": "regions"
},
"source": "regions",
"source-layer": "labels",
"layout": {
"visibility": "none",
"text-field": "{region}",
"text-anchor": "top-left",
"text-justify": "center",
"text-offset": [0.3, 0.3],
"text-font": ["Frutiger Neue Regular"],
"text-size": {"stops": [[6, 8], [10, 16]]}
},
"paint": {
"text-halo-color": "rgba(255, 255, 255, 1)",
"text-halo-width": 0.5,
"text-halo-blur": 1,
"text-translate": [0, 0]
}
}
]
}

Wyświetl plik

@ -15,10 +15,10 @@
<b-field grouped>
<b-checkbox v-model="mapOptions.regions" size="is-small" @input="setMapOption('regions', $event)">Regions</b-checkbox>
</b-field>
<b-field v-if="mapType !== 'swisstopo_raster' && mapType !== 'swisstopo_aerial'" grouped>
<b-field v-if="mapType !== 'swisstopo_raster' && mapType !== 'swisstopo_aerial' && mapType != 'toposvalbard'" grouped>
<b-checkbox v-model="mapOptions.contours" size="is-small" @input="setMapOption('contours', $event)">Contour lines</b-checkbox>
</b-field>
<b-field v-if="mapType !== 'swisstopo_raster' && mapType !== 'swisstopo_aerial'" grouped>
<b-field v-if="mapType !== 'swisstopo_raster' && mapType !== 'swisstopo_aerial' && mapType != 'toposvalbard'" grouped>
<b-checkbox v-model="mapOptions.hillshading" size="is-small" @input="setMapOption('hillshading', $event)">Hillshading</b-checkbox>
</b-field>
<b-field v-if="mapType.startsWith('swisstopo')" grouped>
@ -28,10 +28,10 @@
</b-checkbox>
</b-field>
</div>
<div class="map-option">
<b-field grouped>
<b-checkbox v-model="mapOptions.difficulty" size="is-small" @input="setMapOption('difficulty', $event)">Hiking difficulty</b-checkbox>
</b-field>
<div class="map-option" v-if="mapType != 'toposvalbard'">
<b-field grouped>
<b-checkbox v-model="mapOptions.difficulty" size="is-small" @input="setMapOption('difficulty', $event)">Hiking difficulty</b-checkbox>
</b-field>
<template v-if="mapType.startsWith('swisstopo')">
<b-field grouped>
<b-checkbox v-model="mapOptions.skiing" size="is-small" @input="setMapOption('skiing', $event)">Ski routes</b-checkbox>

Wyświetl plik

@ -99,7 +99,7 @@ export default {
'eu': 'Europe (Switzerland)',
'us': 'US (California)'
},
mapTypes: { 'openmaptiles': 'OpenMapTiles', 'swisstopo': 'swisstopo (Vector)', 'swisstopo_raster': 'swisstopo (Raster)', 'swisstopo_aerial': 'swisstopo (Aerial)' },
mapTypes: { 'openmaptiles': 'OpenMapTiles', 'swisstopo': 'swisstopo (Vector)', 'swisstopo_raster': 'swisstopo (Raster)', 'swisstopo_aerial': 'swisstopo (Aerial)', 'toposvalbard': 'TopoSvalbard' },
initialMapOptions: null
}
}