Themes(guideposts): update guidepost-type questions, make sure they are shown in cyclenodes.json and walkingnodes.json (if relevant), show high-zoom layer to avoid duplicates, see #2385

This commit is contained in:
Pieter Vander Vennet 2025-05-02 19:35:20 +02:00
parent a1b7d7f350
commit 79d43aef40
3 changed files with 78 additions and 3 deletions

View file

@ -80,6 +80,10 @@
{ {
"if": "bicycle=yes", "if": "bicycle=yes",
"ifnot": "bicycle=", "ifnot": "bicycle=",
"alsoShowIf": "guidepost~.*bicycle.*",
"addExtraTags": [
"guidepost="
],
"then": { "then": {
"en": "This guidepost shows bicycle routes", "en": "This guidepost shows bicycle routes",
"de": "Dieser Wegweiser zeigt Fahrradwege", "de": "Dieser Wegweiser zeigt Fahrradwege",
@ -91,6 +95,10 @@
{ {
"if": "hiking=yes", "if": "hiking=yes",
"ifnot": "hiking=", "ifnot": "hiking=",
"alsoShowIf": "guidepost~.*hiking.*",
"addExtraTags": [
"guidepost="
],
"then": { "then": {
"en": "This guidepost shows hiking routes", "en": "This guidepost shows hiking routes",
"de": "Dieser Wegweiser zeigt Wanderwege", "de": "Dieser Wegweiser zeigt Wanderwege",
@ -102,6 +110,10 @@
{ {
"if": "mtb=yes", "if": "mtb=yes",
"ifnot": "mtb=", "ifnot": "mtb=",
"alsoShowIf": "guidepost~.*mtb.*",
"addExtraTags": [
"guidepost="
],
"then": { "then": {
"en": "This guidepost shows mountain bike routes", "en": "This guidepost shows mountain bike routes",
"de": "Dieser Wegweiser zeigt Mountainbike-Routen", "de": "Dieser Wegweiser zeigt Mountainbike-Routen",
@ -113,6 +125,10 @@
{ {
"if": "horse=yes", "if": "horse=yes",
"ifnot": "horse=", "ifnot": "horse=",
"alsoShowIf": "guidepost~.*horse.*",
"addExtraTags": [
"guidepost="
],
"then": { "then": {
"en": "This guidepost shows horse riding routes", "en": "This guidepost shows horse riding routes",
"de": "Dieser Wegweiser zeigt Reitwege", "de": "Dieser Wegweiser zeigt Reitwege",
@ -124,6 +140,10 @@
{ {
"if": "ski=yes", "if": "ski=yes",
"ifnot": "ski=", "ifnot": "ski=",
"alsoShowIf": "guidepost~.*ski.*",
"addExtraTags": [
"guidepost="
],
"then": { "then": {
"en": "This guidepost shows ski routes", "en": "This guidepost shows ski routes",
"de": "Dieser Wegweiser zeigt Skirouten", "de": "Dieser Wegweiser zeigt Skirouten",
@ -131,6 +151,28 @@
"es": "Este poste indicador muestra rutas de esquí", "es": "Este poste indicador muestra rutas de esquí",
"ca": "Aquest document guia mostra les rutes d'esquí" "ca": "Aquest document guia mostra les rutes d'esquí"
} }
},
{
"if": "running=yes",
"ifnot": "running=",
"alsoShowIf": "guidepost~.*running.*",
"addExtraTags": [
"guidepost="
],
"then": {
"en": "This guidepost shows running routes"
}
},
{
"if": "winter_hiking=yes",
"ifnot": "winter_hiking=",
"alsoShowIf": "guidepost~.*winter_hiking.*",
"addExtraTags": [
"guidepost="
],
"then": {
"en": "This guidepost shows winter hiking routes"
}
} }
] ]
}, },

View file

@ -417,7 +417,13 @@
"tags": [ "tags": [
"tourism=information", "tourism=information",
"information=guidepost", "information=guidepost",
"bicycle=yes" {
"or": [
"bicycle=yes",
"guidepost~.*bicycle",
"guidepost~.*mtb.*"
]
}
] ]
} }
], ],
@ -448,6 +454,17 @@
"type" "type"
] ]
}, },
{
"builtin": "guidepost",
"override": {
"minzoom": 18,
"=presets": [],
"name": null,
"filter": {
"sameAs": "bicycle_guidepost"
}
}
},
{ {
"builtin": "route_marker", "builtin": "route_marker",
"override": { "override": {

View file

@ -324,13 +324,18 @@
"guidepost" "guidepost"
], ],
"override": { "override": {
"minzoom": 16, "minzoom": 15,
"id": "guidepost_hiking", "id": "guidepost_hiking",
"source": { "source": {
"osmTags": { "osmTags": {
"and": [ "and": [
"information=guidepost", "information=guidepost",
"hiking=yes" {
"or": [
"hiking=yes",
"guidepost~.*hiking.*"
]
}
] ]
} }
}, },
@ -366,6 +371,17 @@
"type" "type"
] ]
}, },
{
"builtin": "guidepost",
"override": {
"minzoom": 18,
"=presets": [],
"name": null,
"filter": {
"sameAs": "guidepost_hiking"
}
}
},
{ {
"builtin": "route_marker", "builtin": "route_marker",
"override": { "override": {