From c4a9fa81f23ec8a5dcc685b6c42b9e1208337818 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 1 Sep 2023 15:02:30 +0200 Subject: [PATCH] Themes: add atm-option to postoffice, add postoffices to ATM theme, fix #1551 --- assets/layers/postoffices/postoffices.json | 30 +++++++++++++++++++++ assets/themes/atm/atm.json | 31 ++++++++++++++++++++-- 2 files changed, 59 insertions(+), 2 deletions(-) diff --git a/assets/layers/postoffices/postoffices.json b/assets/layers/postoffices/postoffices.json index 70c8b720f..c3295a97c 100644 --- a/assets/layers/postoffices/postoffices.json +++ b/assets/layers/postoffices/postoffices.json @@ -406,6 +406,36 @@ } } ] + }, + { + "id": "has_atm", + "question": { + "en": "Does this post office have an ATM?", + "nl": "Heeft dit postkantoor een bankautomaat?" + }, + "mappings": [ + { + "if": "atm=yes", + "then": { + "en": "This post office has an ATM", + "nl": "Dit postkantoor heeft een bankautomaat" + } + }, + { + "if": "atm=no", + "then": { + "en": "This post office does not have an ATM", + "nl": "Dit postkantoor heeft geen bankautomaaat" + } + }, + { + "if": "atm=separate", + "then": { + "en": "This post office does have an ATM, but it is mapped as a different icon", + "nl": "Dit postkantoor heeft een bankautomaat, maar deze staat apart op de kaart aangeduid" + } + } + ] } ], "presets": [ diff --git a/assets/themes/atm/atm.json b/assets/themes/atm/atm.json index e8340a472..a23e411a4 100644 --- a/assets/themes/atm/atm.json +++ b/assets/themes/atm/atm.json @@ -54,7 +54,7 @@ "override": { "minzoom": 18, "filter": { - "sameAs": "bank" + "sameAs": "bank_with_atm" } } }, @@ -126,6 +126,33 @@ "all_tags" ] } + }, + { + "builtin": "postoffices", + "override": { + "id": "post_offices_with_atm", + "minzoom": 14, + "=presets": [], + "source": { + "osmTags": { + "and+": [ + "atm=yes" + ] + } + }, + "filter": [ + "open_now" + ] + } + }, + { + "builtin": "postoffices", + "override": { + "minzoom": 18, + "filter": { + "sameAs": "post_offices_with_atm" + } + } } ] -} \ No newline at end of file +}