first tweaks

This commit is contained in:
vcoppe
2026-05-23 19:17:37 +02:00
parent ce067d4ff0
commit 561c7e22b3
+97 -1
View File
@@ -9,6 +9,11 @@
"sprite": "https://tiles.openfreemap.org/sprites/ofm_f384/ofm", "sprite": "https://tiles.openfreemap.org/sprites/ofm_f384/ofm",
"glyphs": "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf", "glyphs": "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf",
"layers": [ "layers": [
{
"id": "background",
"type": "background",
"paint": {"background-color": "#f8f4f0"}
},
{ {
"id": "park", "id": "park",
"type": "fill", "type": "fill",
@@ -2219,12 +2224,44 @@
"text-halo-width": 1 "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", "id": "poi_r1",
"type": "symbol", "type": "symbol",
"source": "openmaptiles", "source": "openmaptiles",
"source-layer": "poi", "source-layer": "poi",
"minzoom": 15, "minzoom": 14,
"filter": [ "filter": [
"all", "all",
["match", ["geometry-type"], ["MultiPoint", "Point"], true, false], ["match", ["geometry-type"], ["MultiPoint", "Point"], true, false],
@@ -2292,6 +2329,65 @@
"text-halo-width": 1 "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", "id": "highway-name-path",
"type": "symbol", "type": "symbol",