From 561c7e22b371998d41b6a0b3b16914d3b4900e36 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Sat, 23 May 2026 19:17:37 +0200 Subject: [PATCH] first tweaks --- website/src/lib/assets/custom/topo.json | 98 ++++++++++++++++++++++++- 1 file changed, 97 insertions(+), 1 deletion(-) diff --git a/website/src/lib/assets/custom/topo.json b/website/src/lib/assets/custom/topo.json index bd256c999..e721e8eeb 100644 --- a/website/src/lib/assets/custom/topo.json +++ b/website/src/lib/assets/custom/topo.json @@ -9,6 +9,11 @@ "sprite": "https://tiles.openfreemap.org/sprites/ofm_f384/ofm", "glyphs": "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf", "layers": [ + { + "id": "background", + "type": "background", + "paint": {"background-color": "#f8f4f0"} + }, { "id": "park", "type": "fill", @@ -2219,12 +2224,44 @@ "text-halo-width": 1 } }, + { + "id": "nature_park", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "park", + "minzoom": 9, + "filter": [ + "all", + ["match", ["geometry-type"], ["Point"], true, false], + ["<=", ["get", "rank"], 1] + ], + "layout": { + "icon-image": "park_11", + "text-anchor": "top", + "text-field": [ + "case", + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] + ], + "text-font": ["Noto Sans Italic"], + "text-max-width": 9, + "text-offset": [0, 0.6], + "text-size": 12 + }, + "paint": { + "text-color": "#666", + "text-halo-blur": 0.5, + "text-halo-color": "#ffffff", + "text-halo-width": 1 + } + }, { "id": "poi_r1", "type": "symbol", "source": "openmaptiles", "source-layer": "poi", - "minzoom": 15, + "minzoom": 14, "filter": [ "all", ["match", ["geometry-type"], ["MultiPoint", "Point"], true, false], @@ -2292,6 +2329,65 @@ "text-halo-width": 1 } }, + { + "id": "poi_peak_rank1_m", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "mountain_peak", + "minzoom": 10, + "filter": [ + "all", + ["==", "$type", "Point"], + ["<=", "rank", 1], + ["has", "name"], + ["==", "class", "peak"] + ], + "layout": { + "icon-image": "mountain_11", + "text-anchor": "top", + "text-field": ["get", "name"], + "text-font": ["Noto Sans Regular"], + "text-max-width": 9, + "text-offset": [0, 0.6], + "text-size": 11, + "icon-allow-overlap": false + }, + "paint": { + "text-color": "rgba(30, 30, 30, 1)", + "text-halo-blur": 0.5, + "text-halo-color": "#ffffff", + "text-halo-width": 1.5 + } + }, + { + "id": "poi_saddle_m", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "mountain_peak", + "minzoom": 13, + "filter": [ + "all", + ["==", "$type", "Point"], + ["<=", "rank", 1], + ["==", "class", "saddle"] + ], + "layout": { + "icon-image": "attraction_11", + "text-anchor": "top", + "text-field": ["get", "name"], + "text-font": ["Noto Sans Regular"], + "text-max-width": 9, + "text-offset": [0, 0.6], + "text-size": 11, + "icon-allow-overlap": false + }, + "paint": { + "text-color": "rgba(30, 30, 30, 1)", + "text-halo-blur": 0.5, + "text-halo-color": "#ffffff", + "text-halo-width": 1.5 + } + }, { "id": "highway-name-path", "type": "symbol",