From 53fe70a6770f51fe844cb1245c4e0f8a1b58f1e7 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Fri, 25 Nov 2022 23:18:12 +0100 Subject: [PATCH] Add ATMs --- assets/layers/atm/atm.json | 96 ++++++++++++++++++++++++++++ assets/layers/atm/atm.svg | 3 + assets/layers/atm/license_info.json | 13 ++++ assets/themes/stations/stations.json | 9 ++- 4 files changed, 120 insertions(+), 1 deletion(-) create mode 100644 assets/layers/atm/atm.json create mode 100644 assets/layers/atm/atm.svg create mode 100644 assets/layers/atm/license_info.json diff --git a/assets/layers/atm/atm.json b/assets/layers/atm/atm.json new file mode 100644 index 000000000..a8242be24 --- /dev/null +++ b/assets/layers/atm/atm.json @@ -0,0 +1,96 @@ +{ + "id": "atm", + "name": { + "en": "ATMs" + }, + "description": { + "en": "ATMS to withdraw money" + }, + "title": { + "render": { + "en": "ATM" + }, + "mappings": [ + { + "if": "brand~*", + "then": { + "en": "{brand} ATM" + } + } + ] + }, + "source": { + "osmTags": "amenity=atm" + }, + "minzoom": 13, + "presets": [ + { + "tags": [ + "amenity=atm" + ], + "title": { + "en": "an ATM" + } + } + ], + "tagRenderings": [ + { + "id": "name", + "question": { + "en": "What is the name of this ATM?" + }, + "freeform": { + "key": "name", + "type": "string", + "placeholder": { + "en": "Name of the ATM" + } + }, + "render": { + "en": "The name of this ATM is {name}" + } + }, + { + "id": "brand", + "question": { + "en": "What brand is this ATM?" + }, + "freeform": { + "key": "brand", + "type": "string", + "placeholder": { + "en": "Brand name" + } + }, + "render": { + "en": "The brand of this ATM is {brand}" + } + }, + { + "id": "operator", + "question": { + "en": "What company operates this ATM?" + }, + "freeform": { + "key": "operator", + "type": "string", + "placeholder": { + "en": "Operator" + } + }, + "render": { + "en": "The ATM is operated by {operator}" + } + }, + "opening_hours" + ], + "mapRendering": [ + { + "icon": "circle:white;./assets/layers/atm/atm.svg", + "location": [ + "point", + "centroid" + ] + } + ] +} \ No newline at end of file diff --git a/assets/layers/atm/atm.svg b/assets/layers/atm/atm.svg new file mode 100644 index 000000000..dd010da8b --- /dev/null +++ b/assets/layers/atm/atm.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/assets/layers/atm/license_info.json b/assets/layers/atm/license_info.json new file mode 100644 index 000000000..0bc2bb07b --- /dev/null +++ b/assets/layers/atm/license_info.json @@ -0,0 +1,13 @@ +[ + { + "path": "atm.svg", + "license": "", + "authors": [ + "Michael Glanznig", + "Andy Allan" + ], + "sources": [ + "https://github.com/gravitystorm/openstreetmap-carto/blob/master/symbols/amenity/atm.svg" + ] + } +] \ No newline at end of file diff --git a/assets/themes/stations/stations.json b/assets/themes/stations/stations.json index 0598be96c..5e4bdce67 100644 --- a/assets/themes/stations/stations.json +++ b/assets/themes/stations/stations.json @@ -57,6 +57,12 @@ ] } }, + "name": { + "en": "Train Stations" + }, + "description": { + "en": "Layer showing train stations" + }, "mapRendering": [ { "icon": "./assets/themes/stations/rail-light.svg", @@ -151,7 +157,8 @@ "entrance", "elevator", "bench", - "waste_basket" + "waste_basket", + "atm" ], "override": { "minzoom": 19