Add activation zone display for HB

buefy-0.9 v1.14.1
Manuel Kasper 2021-09-27 14:28:15 +02:00
rodzic 64c684d4ad
commit 429f2e5c48
4 zmienionych plików z 76 dodań i 0 usunięć

Wyświetl plik

@ -78,6 +78,10 @@
"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://vectortiles.geo.admin.ch/styles/ch.swisstopo.leichte-basiskarte.vt/v1.0.0/sprite/sprite",
@ -5716,6 +5720,38 @@
}
},
{
"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",

Wyświetl plik

@ -74,6 +74,10 @@
"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://vectortiles.geo.admin.ch/styles/ch.swisstopo.leichte-basiskarte.vt/v1.0.0/sprite/sprite",
@ -174,6 +178,38 @@
"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",

Wyświetl plik

@ -21,6 +21,9 @@
<b-field v-if="mapType !== 'swisstopo_raster'" grouped>
<b-checkbox v-model="mapOptions.hillshading" size="is-small" @input="setMapOption('hillshading', $event)">Hillshading</b-checkbox>
</b-field>
<b-field v-if="mapType === 'swisstopo' || mapType === 'swisstopo_raster'" grouped>
<b-checkbox v-model="mapOptions.az" size="is-small" @input="setMapOption('az', $event)">Activation zones</b-checkbox>
</b-field>
</div>
<div class="map-option">
<template v-if="mapType === 'swisstopo' || mapType === 'swisstopo_raster'">

Wyświetl plik

@ -29,6 +29,7 @@ let mapOptions = {
regions: false,
contours: true,
hillshading: true,
az: true,
difficulty: true,
spots: false,
inactive: false,