Fix rainbox theme and add improvements

This commit is contained in:
Pieter Vander Vennet 2022-07-12 10:23:45 +02:00
parent f0df09d0cb
commit 441d8467fe
8 changed files with 135 additions and 18 deletions

View file

@ -4,12 +4,11 @@
"en": "Crossings with rainbow paintings"
},
"description": {
"en": "Crossings with decorative rainbow paintings"
"en": "A layer showing pedestrian crossings with rainbow paintings"
},
"source": {
"osmTags": {
"osmTags":
"highway=crossing"
}
},
"minzoom": 17,
"title": {
@ -35,9 +34,11 @@
"snapToLayer": "cycleways_and_roads",
"maxSnapDistance": 25
}
},
}
],
"tagRenderings": [
{
"images",
{
"id": "crossing-with-rainbow",
"question": {
"en": "Does this crossing has rainbow paintings?"
@ -48,13 +49,26 @@
"if": "crossing:marking=rainbow",
"then": {
"en": "This crossing has rainbow paintings"
},
"icon": {
"path": "./assets/themes/rainbow_crossings/logo.svg",
"class": "medium"
}
},
{
"if": "not:crossing:marking=rainbow",
"then": {
"en": "No rainbow paintings here"
},
"icon": "./assets/themes/rainbow_crossings/crossing.svg"
},
{
"if": "crossing:marking!=rainbow",
"then": {
"en": "No rainbow paintings here"
}
},
"icon": "./assets/themes/rainbow_crossings/crossing.svg",
"hideInAnswer": true
}
]
}
@ -62,16 +76,17 @@
"mapRendering": [
{
"icon": {
"render": "./assets/themes/rainbow_crossings/logo.svg"
"render": "./assets/themes/rainbow_crossings/crossing.svg",
"mappings": [{
"if": "crossing:marking=rainbow",
"then": "./assets/themes/rainbow_crossings/logo.svg"
}]
},
"iconSize": "40,40,bottom",
"iconSize": "40,40,center",
"location": [
"point",
"centroid"
]
}
],
"description": {
"en": "A layer showing pedestrian crossings with rainbow paintings"
}
]
}