Themes: add 'artwork' questions to drinking water fountains

This commit is contained in:
Pieter Vander Vennet 2023-12-01 16:07:23 +01:00
parent 2a3a78bc69
commit def640fb1c

View file

@ -62,7 +62,11 @@
"cs": "Pitná voda"
}
},
"titleIcons": ["icons.defaults", "auto:type", "auto:seasonal"],
"titleIcons": [
"icons.defaults",
"auto:type",
"auto:seasonal"
],
"pointRendering": [
{
"iconBadges": [
@ -75,6 +79,10 @@
]
},
"then": "close:#c33"
},
{
"if": "tourism=artwork",
"then": "circle:white;./assets/layers/artwork/artwork.svg"
}
],
"iconSize": "40,40",
@ -150,7 +158,10 @@
"mappings": [
{
"if": "operational_status=",
"addExtraTags": ["disused:amenity=","amenity=drinking_water"],
"addExtraTags": [
"disused:amenity=",
"amenity=drinking_water"
],
"then": {
"en": "This drinking water works",
"nl": "Deze drinkwaterfontein werkt",
@ -329,7 +340,10 @@
}
]
},
{"builtin":["opening_hours_24_7"],
{
"builtin": [
"opening_hours_24_7"
],
"override": {
"questionHint": {
"en": "These are the opening hours if the drinking water fountain is operational."
@ -339,7 +353,8 @@
"if": {
"and": [
"seasonal!=no",
{"or":[
{
"or": [
{
"and": [
"seasonal!~.*winter.*",
@ -364,17 +379,65 @@
"_now:date~....-(09|10|11)-.."
]
}
]}
]
}
]
},
"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
}
]
}
},
{
"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",
"render": {
@ -390,7 +453,6 @@
},
"condition": "_closest_other_drinking_water_id~*"
}
],
"deletion": {
"softDeletionTags": {