From 8f95e8520a751ef9fef8cc7a8810322117c7b6c1 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 2 Aug 2024 13:52:45 +0200 Subject: [PATCH] Themes: ghost signs: add wall-based artworks to be able to mark them as ghost sign and to avoid duplicates --- assets/themes/ghostsigns/ghostsigns.json | 50 ++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/assets/themes/ghostsigns/ghostsigns.json b/assets/themes/ghostsigns/ghostsigns.json index ef8f377f1..96b3d5cb1 100644 --- a/assets/themes/ghostsigns/ghostsigns.json +++ b/assets/themes/ghostsigns/ghostsigns.json @@ -215,6 +215,56 @@ ], "isCounted": false } + }, + { + "builtin": "artwork", + "override": { + "minzoom": 16, + "presets=": null, + "id": "artwork_on_wall", + "+tagRenderings": [ + { + "id": "historic_or_not", + "question": { + "en": "Is this artwork a historic advertisement?" + }, + "mappings": [ + { + "if": "historic=advertising", + "addExtraTags": [ + "advertising=wall_painting" + ], + "then": { + "en": "This artwork is a historic advertisement" + } + }, + { + "if": "historic=", + "addExtraTags": [ + "advertising=" + ], + "then": { + "en": "This artwork is not a historic advertisement" + } + } + ] + } + ], + "source": { + "osmTags": { + "and+": { + "or": [ + "artwork_type=mural", + "artwork_type=graffiti", + "artwork_type=mosaic", + "artwork_type=relief", + "artwork_type=painting", + "artwork_type=mural_painting" + ] + } + } + } + } } ] }