From 932712e8d95be8db3f4d0de55eeb8952cae2e724 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Tue, 20 Jun 2023 19:51:19 +0200 Subject: [PATCH] Basic shower layer --- assets/layers/shower/license_info.json | 12 +++ assets/layers/shower/shower.json | 136 +++++++++++++++++++++++++ assets/layers/shower/shower.svg | 87 ++++++++++++++++ assets/themes/toilets/toilets.json | 3 +- 4 files changed, 237 insertions(+), 1 deletion(-) create mode 100644 assets/layers/shower/license_info.json create mode 100644 assets/layers/shower/shower.json create mode 100644 assets/layers/shower/shower.svg diff --git a/assets/layers/shower/license_info.json b/assets/layers/shower/license_info.json new file mode 100644 index 000000000..c95abdc9e --- /dev/null +++ b/assets/layers/shower/license_info.json @@ -0,0 +1,12 @@ +[ + { + "path": "shower.svg", + "license": "CC0", + "authors": [ + "James" + ], + "sources": [ + "https://github.com/gravitystorm/openstreetmap-carto/blob/master/symbols/amenity/shower.svg" + ] + } +] \ No newline at end of file diff --git a/assets/layers/shower/shower.json b/assets/layers/shower/shower.json new file mode 100644 index 000000000..5a3a197f2 --- /dev/null +++ b/assets/layers/shower/shower.json @@ -0,0 +1,136 @@ +{ + "id": "shower", + "name": { + "en": "Shower" + }, + "minzoom": 12, + "source": { + "osmTags": "amenity=shower" + }, + "title": { + "render": { + "en": "Shower" + } + }, + "presets": [], + "tagRenderings": [ + "images", + "level", + { + "id": "access", + "question": { + "en": "Who can use this shower?" + }, + "mappings": [ + { + "if": "access=yes", + "then": { + "en": "Anyone can use this shower" + } + }, + { + "if": "access=customers", + "then": { + "en": "Only customers can use this shower" + } + }, + { + "if": "access=key", + "then": { + "en": "Accesible, but one has to ask for a key" + } + } + ] + }, + { + "id": "fee", + "question": { + "en": "Is there a fee for using this shower?" + }, + "mappings": [ + { + "if": "fee=yes", + "then": { + "en": "There is a fee for using this shower" + } + }, + { + "if": "fee=no", + "then": { + "en": "This shower is free to use" + } + } + ] + }, + { + "id": "charge", + "condition": "fee=yes", + "question": { + "en": "How much does it cost to use this shower?" + }, + "freeform": { + "key": "charge", + "type": "string", + "placeholder": { + "en": "e.g. 1€" + } + }, + "render": { + "en": "It costs {charge} to use this shower" + } + }, + "opening_hours", + { + "id": "hot_water", + "question": { + "en": "Does this shower have hot water available?" + }, + "mappings": [ + { + "if": "hot_water=yes", + "then": { + "en": "Hot water is available here" + } + }, + { + "if": "hot_water=fee", + "then": { + "en": "Hot water is available here, but there is a fee" + } + }, + { + "if": "hot_water=no", + "then": { + "en": "There is no hot water available here" + } + } + ] + } + ], + "filter": [], + "deletion": { + "softDeletionTags": { + "and": [ + "disused:amenity={amenity}", + "amenity=" + ] + }, + "neededChangesets": 1 + }, + "allowMove": { + "enableImproveAccuracy": true, + "enableRelocation": false + }, + "mapRendering": [ + { + "icon": "circle:white;./assets/layers/shower/shower.svg", + "location": [ + "point", + "centroid" + ] + } + ], + "description": { + "en": "A layer showing (public) showers" + } +} \ No newline at end of file diff --git a/assets/layers/shower/shower.svg b/assets/layers/shower/shower.svg new file mode 100644 index 000000000..4ff22a701 --- /dev/null +++ b/assets/layers/shower/shower.svg @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + diff --git a/assets/themes/toilets/toilets.json b/assets/themes/toilets/toilets.json index 8e91bf8fb..5f28908ba 100644 --- a/assets/themes/toilets/toilets.json +++ b/assets/themes/toilets/toilets.json @@ -41,6 +41,7 @@ "icon": "./assets/themes/toilets/toilets.svg", "layers": [ "toilet", - "toilet_at_amenity" + "toilet_at_amenity", + "shower" ] } \ No newline at end of file