Themes: add memorials to artwork on high zoom

This commit is contained in:
Pieter Vander Vennet 2024-08-05 20:46:42 +02:00
parent d8be0acdfe
commit 29c5b884c4
3 changed files with 45 additions and 2 deletions

View file

@ -789,6 +789,37 @@
"artwork-question"
]
},
{
"id": "doubles_as_memorial",
"question": {
"en": "Does this artwork serve as a memorial?"
},
"mappings": [
{
"if": "historic=memorial",
"then": {
"en": "This artwork also serves as a memorial"
}
},
{
"if": "historic=",
"alsoShowIf": "historic!=memorial",
"then": {
"en": "This artwork does not serve as a bench"
}
}
]
},
{
"builtin": "memorial.memorial-questions",
"override": {
"condition": {
"and": [
"historic=memorial"
]
}
}
},
{
"id": "doubles_as_bench",
"question": {

View file

@ -93,6 +93,7 @@
"images",
{
"id": "memorial-type",
"labels": ["memorial-questions"],
"question": {
"en": "What type of memorial is this?",
"de": "Was für eine Art von Denkmal ist das?",
@ -255,6 +256,8 @@
},
{
"id": "inscription",
"labels": ["memorial-questions"],
"question": {
"en": "What is the inscription on this memorial?",
"ca": "Quina és la inscripció d'aquesta placa?",

View file

@ -51,6 +51,15 @@
"icon": "./assets/themes/artwork/artwork.svg",
"startZoom": 12,
"layers": [
"artwork"
"artwork",
{
"builtin": [
"memorial",
"bench"
],
"override": {
"minzoom": 18
}
}
]
}
}