From 29c5b884c404c14258dd116921990923c9a89181 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 5 Aug 2024 20:46:42 +0200 Subject: [PATCH] Themes: add memorials to artwork on high zoom --- assets/layers/artwork/artwork.json | 31 ++++++++++++++++++++++++++++ assets/layers/memorial/memorial.json | 3 +++ assets/themes/artwork/artwork.json | 13 ++++++++++-- 3 files changed, 45 insertions(+), 2 deletions(-) diff --git a/assets/layers/artwork/artwork.json b/assets/layers/artwork/artwork.json index 43d4a514e..71f52f5db 100644 --- a/assets/layers/artwork/artwork.json +++ b/assets/layers/artwork/artwork.json @@ -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": { diff --git a/assets/layers/memorial/memorial.json b/assets/layers/memorial/memorial.json index cd6458433..c3171e733 100644 --- a/assets/layers/memorial/memorial.json +++ b/assets/layers/memorial/memorial.json @@ -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?", diff --git a/assets/themes/artwork/artwork.json b/assets/themes/artwork/artwork.json index d8006c1bf..aa873e517 100644 --- a/assets/themes/artwork/artwork.json +++ b/assets/themes/artwork/artwork.json @@ -51,6 +51,15 @@ "icon": "./assets/themes/artwork/artwork.svg", "startZoom": 12, "layers": [ - "artwork" + "artwork", + { + "builtin": [ + "memorial", + "bench" + ], + "override": { + "minzoom": 18 + } + } ] -} \ No newline at end of file +}