Better via ferrata rendering

buefy-0.9^2
Manuel Kasper 2024-05-28 19:34:31 +02:00
rodzic 91c1ad9e6e
commit 3566d477d9
2 zmienionych plików z 87 dodań i 51 usunięć

Wyświetl plik

@ -1,5 +1,5 @@
--- style.json 2024-05-28 19:10:13 --- style.json 2024-05-28 19:33:50
+++ /Users/mk/Repositories/SOTLAS/sotlas-frontend/src/assets/swisstopo.json 2024-05-28 18:57:42 +++ /Users/mk/Repositories/SOTLAS/sotlas-frontend/src/assets/swisstopo.json 2024-05-28 19:32:59
@@ -10,6 +10,72 @@ @@ -10,6 +10,72 @@
"base_v1.0.0": { "base_v1.0.0": {
"url": "https://vectortiles.geo.admin.ch/tiles/ch.swisstopo.base.vt/v1.0.0/tiles.json", "url": "https://vectortiles.geo.admin.ch/tiles/ch.swisstopo.base.vt/v1.0.0/tiles.json",
@ -74,12 +74,10 @@
}, },
"layers": [ "layers": [
\ No newline at end of file \ No newline at end of file
@@ -22,12 +88,77 @@ @@ -24,10 +90,75 @@
"paint": {
"background-color": "rgba(253, 253, 254, 1)"
} }
+ }, },
+ { {
+ "id": "background_water", + "id": "background_water",
+ "type": "fill", + "type": "fill",
+ "source": "v3", + "source": "v3",
@ -140,8 +138,8 @@
+ 0 + 0
+ ] + ]
+ ] + ]
}, + },
{ + {
"id": "hillshade_grey", "id": "hillshade_grey",
"type": "fill", "type": "fill",
"source": "terrain_v1.0.0", "source": "terrain_v1.0.0",
@ -164,10 +162,13 @@
"visibility": "visible" "visibility": "visible"
}, },
\ No newline at end of file \ No newline at end of file
@@ -256,11 +390,53 @@ @@ -253,6 +387,45 @@
} "scree_small_4",
}, ""
{ ]
+ }
+ },
+ {
+ "id": "wildlife_areas", + "id": "wildlife_areas",
+ "type": "raster", + "type": "raster",
+ "metadata": { + "metadata": {
@ -204,11 +205,11 @@
+ "paint": { + "paint": {
+ "raster-opacity": 0.3, + "raster-opacity": 0.3,
+ "raster-resampling": "nearest" + "raster-resampling": "nearest"
+ } }
+ }, },
+ { {
"id": "contour_line", \ No newline at end of file
"type": "line", @@ -261,6 +434,9 @@
"source": "base_v1.0.0", "source": "base_v1.0.0",
"source-layer": "contour_line", "source-layer": "contour_line",
"minzoom": 11.0, "minzoom": 11.0,
@ -230,15 +231,30 @@
"filter": [ "filter": [
"in", "in",
\ No newline at end of file \ No newline at end of file
@@ -2734,7 +2911,66 @@ @@ -2461,7 +2638,7 @@
false },
], "paint": {
true "line-blur": 0.25,
+ ], - "line-color": "rgba(80, 80, 80, 1)",
+ [ + "line-color": "rgba(210, 80, 80, 1)",
+ "==", "line-width": [
+ ["geometry-type"], "interpolate",
+ "LineString" ["linear"],
\ No newline at end of file
@@ -2498,7 +2675,7 @@
},
"paint": {
"line-blur": 0.25,
- "line-color": "rgba(80, 80, 80, 1)",
+ "line-color": "rgba(210, 80, 80, 1)",
"line-width": [
"interpolate",
["linear"],
\ No newline at end of file
@@ -2739,6 +2916,68 @@
"==",
["geometry-type"],
"LineString"
+ ] + ]
+ ] + ]
+ }, + },
@ -282,7 +298,7 @@
+ 4, + 4,
+ 20, + 20,
+ 10 + 10
], + ],
+ "line-opacity": 0.8 + "line-opacity": 0.8
+ }, + },
+ "metadata": { + "metadata": {
@ -290,20 +306,25 @@
+ }, + },
+ "filter": [ + "filter": [
+ "all", + "all",
+ ["has", "sac_scale"],
+ [ + [
+ "has", + "!in",
+ "sac_scale" + "class",
+ "via_ferrata",
+ "via_ferrata_construction"
+ ], + ],
[ + [
"==", + "!in",
["geometry-type"], + "subclass",
\ No newline at end of file + "mask_rock_via_ferrata"
@@ -3007,8 +3243,34 @@
"LineString"
] ]
] ]
+ }, },
+ { \ No newline at end of file
@@ -3009,6 +3248,32 @@
]
},
{
+ "id": "skiing_trails_raster", + "id": "skiing_trails_raster",
+ "type": "raster", + "type": "raster",
+ "metadata": { + "metadata": {
@ -315,8 +336,8 @@
+ "raster-opacity": 0.6, + "raster-opacity": 0.6,
+ "raster-resampling": "linear" + "raster-resampling": "linear"
+ } + }
}, + },
{ + {
+ "id": "snowshoe_trails_raster", + "id": "snowshoe_trails_raster",
+ "type": "raster", + "type": "raster",
+ "metadata": { + "metadata": {
@ -334,7 +355,7 @@
"type": "symbol", "type": "symbol",
"source": "base_v1.0.0", "source": "base_v1.0.0",
\ No newline at end of file \ No newline at end of file
@@ -9137,6 +9399,9 @@ @@ -9137,6 +9402,9 @@
"source": "base_v1.0.0", "source": "base_v1.0.0",
"source-layer": "contour_line_pt", "source-layer": "contour_line_pt",
"minzoom": 16.0, "minzoom": 16.0,
@ -345,7 +366,7 @@
"text-font": ["Frutiger Neue Italic"], "text-font": ["Frutiger Neue Italic"],
"text-size": 12, "text-size": 12,
\ No newline at end of file \ No newline at end of file
@@ -9217,6 +9482,9 @@ @@ -9217,6 +9485,9 @@
"source": "base_v1.0.0", "source": "base_v1.0.0",
"source-layer": "contour_line_pt", "source-layer": "contour_line_pt",
"minzoom": 13.0, "minzoom": 13.0,
@ -356,7 +377,17 @@
"text-font": ["Frutiger Neue Italic"], "text-font": ["Frutiger Neue Italic"],
"text-size": [ "text-size": [
\ No newline at end of file \ No newline at end of file
@@ -13032,8 +13300,8 @@ @@ -10981,6 +11252,8 @@
"rgba(27, 36, 62, 1)",
["historic_archive","historic_library"],
"rgba(46,52,70,1)",
+ ["via_ferrata","via_ferrata_construction"],
+ "rgba(210, 80, 80, 1)",
"rgba(42, 42, 42, 1)"
]
],
\ No newline at end of file
@@ -13032,8 +13305,8 @@
"international", "international",
["literal","uppercase"], ["literal","uppercase"],
"regional", "regional",
@ -368,7 +399,7 @@
"symbol-placement": "point", "symbol-placement": "point",
"text-letter-spacing": [ "text-letter-spacing": [
\ No newline at end of file \ No newline at end of file
@@ -14151,6 +14419,303 @@ @@ -14151,6 +14424,303 @@
["==","class","country"], ["==","class","country"],
["==","iso_a2","CH"] ["==","iso_a2","CH"]
] ]

Wyświetl plik

@ -2638,7 +2638,7 @@
}, },
"paint": { "paint": {
"line-blur": 0.25, "line-blur": 0.25,
"line-color": "rgba(80, 80, 80, 1)", "line-color": "rgba(210, 80, 80, 1)",
"line-width": [ "line-width": [
"interpolate", "interpolate",
["linear"], ["linear"],
@ -2675,7 +2675,7 @@
}, },
"paint": { "paint": {
"line-blur": 0.25, "line-blur": 0.25,
"line-color": "rgba(80, 80, 80, 1)", "line-color": "rgba(210, 80, 80, 1)",
"line-width": [ "line-width": [
"interpolate", "interpolate",
["linear"], ["linear"],
@ -2967,14 +2967,17 @@
}, },
"filter": [ "filter": [
"all", "all",
["has", "sac_scale"],
[ [
"has", "!in",
"sac_scale" "class",
"via_ferrata",
"via_ferrata_construction"
], ],
[ [
"==", "!in",
["geometry-type"], "subclass",
"LineString" "mask_rock_via_ferrata"
] ]
] ]
}, },
@ -11249,6 +11252,8 @@
"rgba(27, 36, 62, 1)", "rgba(27, 36, 62, 1)",
["historic_archive","historic_library"], ["historic_archive","historic_library"],
"rgba(46,52,70,1)", "rgba(46,52,70,1)",
["via_ferrata","via_ferrata_construction"],
"rgba(210, 80, 80, 1)",
"rgba(42, 42, 42, 1)" "rgba(42, 42, 42, 1)"
] ]
], ],