From 0bac4ff2a47b148e5880ef08bf6828a23951dff4 Mon Sep 17 00:00:00 2001 From: Osmwithspace <> Date: Fri, 18 Apr 2025 10:07:45 +0200 Subject: [PATCH] add sauna layer --- assets/layers/sauna/license_info.json | 12 +++ assets/layers/sauna/sauna.json | 124 ++++++++++++++++++++++++++ assets/layers/sauna/sauna.svg | 26 ++++++ assets/layers/sauna/sauna.svg.license | 2 + 4 files changed, 164 insertions(+) create mode 100644 assets/layers/sauna/license_info.json create mode 100644 assets/layers/sauna/sauna.json create mode 100644 assets/layers/sauna/sauna.svg create mode 100644 assets/layers/sauna/sauna.svg.license diff --git a/assets/layers/sauna/license_info.json b/assets/layers/sauna/license_info.json new file mode 100644 index 000000000..9e41697de --- /dev/null +++ b/assets/layers/sauna/license_info.json @@ -0,0 +1,12 @@ +[ + { + "path": "sauna.svg", + "license": "CC0-1.0", + "authors": [ + "Geozeisig" + ], + "sources": [ + "https://wiki.openstreetmap.org/wiki/File:Sauna-14.svg" + ] + } +] \ No newline at end of file diff --git a/assets/layers/sauna/sauna.json b/assets/layers/sauna/sauna.json new file mode 100644 index 000000000..177027a59 --- /dev/null +++ b/assets/layers/sauna/sauna.json @@ -0,0 +1,124 @@ +{ + "credits": "Osmwithspace", + "minzoom": 8, + "pointRendering": [ + { + "location": [ + "point", + "centroid" + ], + "marker": [ + { + "icon": "./assets/layers/sauna/sauna.svg" + } + ] + } + ], + "tagRenderings": [ + "images", + "reviews", + "opening_hours", + { + "id": "charge_cost_rewritten", + "rewrite": { + "sourceString": [ + "{key}", + "{time}" + ], + "into": [ + [ + "2 hours", + { + "en": "2 hours", + "de": "2 Stunden" + } + ], + [ + "4 hours", + { + "en": "4 hours", + "de": "4 Stunden" + } + ], + [ + "day", + { + "en": "one day", + "de": "einen Tag" + } + ] + ] + }, + "renderings": [ + { + "id": "charge_{key}", + "question": { + "en": "What is the entrance fee for {time}?", + "de": "Was ist der Eintrittspreis für {time}?" + }, + "render": { + "en": "entrance fee for {time}: {charge}", + "de": "Eintrittspreis für {time}: {charge}" + }, + "freeform": { + "key": "charge", + "type": "currency", + "inline": true, + "postfixDistinguished": "{key}", + "addExtraTags": [ + "fee=yes" + ] + }, + "mappings": [ + { + "if": "fee=no", + "addExtraTags": [ + "charge=" + ], + "then": { + "en": "The sauna is free of charge", + "de": "Die Sauna ist kostenlos" + }, + "hideInAnswer": "fee!=no" + } + ] + } + ] + }, + "contact", + "defibrillator.defibrillator-fixme" + ], + "lineRendering": [ + { + "width": 1, + "color": "blue" + } + ], + "credits:uid": 8770388, + "source": { + "osmTags": { + "and": [ + "leisure~.*sauna.*", + { + "or": [ + "opening_hours!=", + "website!=", + "phone!=" + ] + } + ] + } + }, + "description": { + "en": "A sauna is a small room or house designed as a place to experience dry or wet heat sessions, or an establishment with one or more of these and auxiliary facilities." + }, + "id": "sauna", + "name": { + "en": "Sauna" + }, + "title": { + "render": { + "en": "{name}" + } + } +} \ No newline at end of file diff --git a/assets/layers/sauna/sauna.svg b/assets/layers/sauna/sauna.svg new file mode 100644 index 000000000..49f43a322 --- /dev/null +++ b/assets/layers/sauna/sauna.svg @@ -0,0 +1,26 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/layers/sauna/sauna.svg.license b/assets/layers/sauna/sauna.svg.license new file mode 100644 index 000000000..5e3616ed7 --- /dev/null +++ b/assets/layers/sauna/sauna.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Geozeisig +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file