Updated rainbow crossing theme to use surface:colour on footways instead of crossing:marking (deprecated)

This commit is contained in:
bxl-forever 2023-06-11 14:43:15 +02:00
parent 41aa6e871f
commit 7dd3b4be4d
5 changed files with 29 additions and 24 deletions

View file

@ -13,7 +13,12 @@
"ca": "Una capa que mostra els passos de vianants pintats amb de l'arc de Sant Martí"
},
"source": {
"osmTags": "highway=crossing"
"osmTags": {
"and": [
"highway=footway",
"footway=crossing"
]
}
},
"minzoom": 17,
"title": {
@ -34,7 +39,7 @@
"fr": "un passage"
},
"tags": [
"highway=crossing"
"footway=crossing"
],
"description": {
"en": "Pedestrian crossing",
@ -62,10 +67,10 @@
"fr": "Ce passage a-t-il une peinture arc-en-ciel ?",
"ca": "Aquest pas de vianants està pintat amb l'arc de Sant Martí?"
},
"condition": "highway=crossing",
"condition": "footway=crossing",
"mappings": [
{
"if": "crossing:marking=rainbow",
"if": "surface:colour=rainbow",
"then": {
"en": "This crossing has rainbow paintings",
"de": "Der Überweg hat eine Markierung in Regenbogenfarben",
@ -78,7 +83,7 @@
}
},
{
"if": "not:crossing:marking=rainbow",
"if": "not:surface:colour=rainbow",
"then": {
"en": "No rainbow paintings here",
"de": "Hier gibt es kein Markierung in Regenbogenfarben",
@ -88,7 +93,7 @@
"icon": "./assets/themes/rainbow_crossings/crossing.svg"
},
{
"if": "crossing:marking!=rainbow",
"if": "surface:colour!=rainbow",
"then": {
"en": "No rainbow paintings here",
"de": "Hier gibt es kein Markierung in Regenbogenfarben",
@ -107,7 +112,7 @@
"render": "./assets/themes/rainbow_crossings/crossing.svg",
"mappings": [
{
"if": "crossing:marking=rainbow",
"if": "surface:colour=rainbow",
"then": "./assets/themes/rainbow_crossings/logo.svg"
}
]
@ -119,4 +124,4 @@
]
}
]
}
}

View file

@ -38,7 +38,7 @@
"source": {
"osmTags": {
"and+": [
"crossing:marking=rainbow"
"surface:colour=rainbow"
]
}
}
@ -53,4 +53,4 @@
}
}
]
}
}