Themes: add 'artwork' questions to drinking water fountains
This commit is contained in:
parent
2a3a78bc69
commit
def640fb1c
1 changed files with 107 additions and 45 deletions
|
@ -62,7 +62,11 @@
|
||||||
"cs": "Pitná voda"
|
"cs": "Pitná voda"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"titleIcons": ["icons.defaults", "auto:type", "auto:seasonal"],
|
"titleIcons": [
|
||||||
|
"icons.defaults",
|
||||||
|
"auto:type",
|
||||||
|
"auto:seasonal"
|
||||||
|
],
|
||||||
"pointRendering": [
|
"pointRendering": [
|
||||||
{
|
{
|
||||||
"iconBadges": [
|
"iconBadges": [
|
||||||
|
@ -75,6 +79,10 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"then": "close:#c33"
|
"then": "close:#c33"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "tourism=artwork",
|
||||||
|
"then": "circle:white;./assets/layers/artwork/artwork.svg"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"iconSize": "40,40",
|
"iconSize": "40,40",
|
||||||
|
@ -150,7 +158,10 @@
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
"if": "operational_status=",
|
"if": "operational_status=",
|
||||||
"addExtraTags": ["disused:amenity=","amenity=drinking_water"],
|
"addExtraTags": [
|
||||||
|
"disused:amenity=",
|
||||||
|
"amenity=drinking_water"
|
||||||
|
],
|
||||||
"then": {
|
"then": {
|
||||||
"en": "This drinking water works",
|
"en": "This drinking water works",
|
||||||
"nl": "Deze drinkwaterfontein werkt",
|
"nl": "Deze drinkwaterfontein werkt",
|
||||||
|
@ -329,7 +340,10 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{"builtin":["opening_hours_24_7"],
|
{
|
||||||
|
"builtin": [
|
||||||
|
"opening_hours_24_7"
|
||||||
|
],
|
||||||
"override": {
|
"override": {
|
||||||
"questionHint": {
|
"questionHint": {
|
||||||
"en": "These are the opening hours if the drinking water fountain is operational."
|
"en": "These are the opening hours if the drinking water fountain is operational."
|
||||||
|
@ -339,7 +353,8 @@
|
||||||
"if": {
|
"if": {
|
||||||
"and": [
|
"and": [
|
||||||
"seasonal!=no",
|
"seasonal!=no",
|
||||||
{"or":[
|
{
|
||||||
|
"or": [
|
||||||
{
|
{
|
||||||
"and": [
|
"and": [
|
||||||
"seasonal!~.*winter.*",
|
"seasonal!~.*winter.*",
|
||||||
|
@ -364,17 +379,65 @@
|
||||||
"_now:date~....-(09|10|11)-.."
|
"_now:date~....-(09|10|11)-.."
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]}
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"then": {
|
"then": {
|
||||||
"en": "This drinking water fountain is closed this season."
|
"en": "This drinking water fountain is closed this season. As such, the opening hours are not shown."
|
||||||
},
|
},
|
||||||
"hideInAnswer": true
|
"hideInAnswer": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "bench-artwork",
|
||||||
|
"question": {
|
||||||
|
"en": "Does this drinking water fountain have an artistic element?",
|
||||||
|
"nl": "Heeft dit drinkwaterpunt een geintegreerd kunstwerk?"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "tourism=artwork",
|
||||||
|
"addExtraTags": [
|
||||||
|
"not:tourism:artwork="
|
||||||
|
],
|
||||||
|
"then": {
|
||||||
|
"en": "This drinking water point has an integrated artwork",
|
||||||
|
"nl": "Dit drinkwaterpunt heeft een geintegreerd kunstwerk"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "not:tourism:artwork=yes",
|
||||||
|
"then": {
|
||||||
|
"en": "This drinking water point does not have an integrated artwork",
|
||||||
|
"nl": "Dit drinkwaterpunt heeft geen geïntegreerd kunstwerk"
|
||||||
|
},
|
||||||
|
"addExtraTags": [
|
||||||
|
"tourism="
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "tourism=",
|
||||||
|
"then": {
|
||||||
|
"en": "This drinking water point <span class=\"subtle\">probably</span> doesn't have an integrated artwork",
|
||||||
|
"nl": "Dit drinkwaterpunt heeft <span class=\"subtle\">waarschijnlijk</span> geen geïntegreerd kunstwerk"
|
||||||
|
},
|
||||||
|
"hideInAnswer": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"questionHint": {
|
||||||
|
"en": "E.g. it has an integrated statue or other non-trivial, creative work",
|
||||||
|
"nl": "Bijvoorbeeld een standbeeld of ander, niet-triviaal kunstwerk"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"builtin": "artwork.*artwork-question",
|
||||||
|
"override": {
|
||||||
|
"condition": "tourism=artwork"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "render-closest-drinking-water",
|
"id": "render-closest-drinking-water",
|
||||||
"render": {
|
"render": {
|
||||||
|
@ -390,7 +453,6 @@
|
||||||
},
|
},
|
||||||
"condition": "_closest_other_drinking_water_id~*"
|
"condition": "_closest_other_drinking_water_id~*"
|
||||||
}
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
"deletion": {
|
"deletion": {
|
||||||
"softDeletionTags": {
|
"softDeletionTags": {
|
||||||
|
|
Loading…
Reference in a new issue