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" "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",
@ -297,7 +308,7 @@
{ {
"if": "fee=yes", "if": "fee=yes",
"then": { "then": {
"en":"One needs to pay to use this drinking water point" "en": "One needs to pay to use this drinking water point"
} }
} }
] ]
@ -310,71 +321,123 @@
"mappings": [ "mappings": [
{ {
"if": "seasonal=no", "if": "seasonal=no",
"then":{ "then": {
"en":"This drinking water point is available all around the year" "en": "This drinking water point is available all around the year"
} }
}, },
{ {
"if": "seasonal=summer", "if": "seasonal=summer",
"then":{ "then": {
"en":"This drinking water point is only available in summer" "en": "This drinking water point is only available in summer"
} }
}, },
{ {
"if": "seasonal=spring;summer;autumn", "if": "seasonal=spring;summer;autumn",
"icon": "./assets/layers/drinking_water/no_winter.svg", "icon": "./assets/layers/drinking_water/no_winter.svg",
"then":{ "then": {
"en":"This drinking water point is closed during the winter" "en": "This drinking water point is closed during the winter"
} }
} }
] ]
}, },
{"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."
}, },
"+mappings":[ "+mappings": [
{ {
"if":{ "if": {
"and": [ "and": [
"seasonal!=no", "seasonal!=no",
{"or":[ {
{ "or": [
"and":[ {
"seasonal!~.*winter.*", "and": [
"_now:date~....-(12|01|02)-.." "seasonal!~.*winter.*",
] "_now:date~....-(12|01|02)-.."
}, ]
{ },
"and":[ {
"seasonal!~.*spring.*", "and": [
"_now:date~....-(03|04|05)-.." "seasonal!~.*spring.*",
] "_now:date~....-(03|04|05)-.."
}, ]
{ },
"and":[ {
"seasonal!~.*summer.*", "and": [
"_now:date~....-(06|07|08)-.." "seasonal!~.*summer.*",
] "_now:date~....-(06|07|08)-.."
}, ]
{ },
"and":[ {
"seasonal!~.*autumn.*", "and": [
"_now:date~....-(09|10|11)-.." "seasonal!~.*autumn.*",
] "_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": {
@ -443,7 +505,7 @@
] ]
}, },
"then": { "then": {
"en":"This is a historic, manual water pump where no drinking water can be found" "en": "This is a historic, manual water pump where no drinking water can be found"
} }
} }
] ]