From f0d89945f6134905a659757aa2cb3ec40a445966 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 21 Dec 2022 01:43:30 +0100 Subject: [PATCH] Add ATMS in banks --- assets/layers/atm/atm.json | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/assets/layers/atm/atm.json b/assets/layers/atm/atm.json index c77bee920..ff78ad729 100644 --- a/assets/layers/atm/atm.json +++ b/assets/layers/atm/atm.json @@ -32,7 +32,14 @@ ] }, "source": { - "osmTags": "amenity=atm" + "osmTags": { + "or": [ + "amenity=atm", + { + "and": ["amenity=bank","atm=yes"] + } + ] + } }, "minzoom": 13, "presets": [ @@ -49,6 +56,12 @@ } ], "tagRenderings": [ + { + "condition": "amenity=bank", + "render": { + "en": "This ATM is located in or near a bank" + } + }, { "id": "name", "render": { @@ -86,6 +99,7 @@ }, { "id": "operator", + "condition": "amenity!=bank", "question": { "en": "What company operates this ATM?", "de": "Welches Unternehmen betreibt den Geldautomaten?", @@ -109,7 +123,12 @@ "nl": "Deze geldautomaat wordt beheerd door {operator}" } }, - "opening_hours" + { + "builtin": "opening_hours", + "override": { + "condition": "amenity!=bank" + } + } ], "mapRendering": [ { @@ -120,4 +139,4 @@ ] } ] -} \ No newline at end of file +}