From d167fe77232b502ccef4ee051c8d73f948100dd0 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 12 Aug 2024 10:07:33 +0200 Subject: [PATCH] Themes: add hostel, cleanup of hotel --- assets/layers/hostel/hostel.json | 68 +++++++++++++++ assets/layers/hostel/hostel.svg | 109 ++++++++++++++++++++++++ assets/layers/hostel/hostel.svg.license | 2 + assets/layers/hostel/license_info.json | 12 +++ assets/layers/hotel/hotel.json | 17 ++-- assets/layers/questions/questions.json | 25 ++++++ assets/themes/hotels/hotels.json | 1 + 7 files changed, 228 insertions(+), 6 deletions(-) create mode 100644 assets/layers/hostel/hostel.json create mode 100644 assets/layers/hostel/hostel.svg create mode 100644 assets/layers/hostel/hostel.svg.license create mode 100644 assets/layers/hostel/license_info.json diff --git a/assets/layers/hostel/hostel.json b/assets/layers/hostel/hostel.json new file mode 100644 index 000000000..93c4bf262 --- /dev/null +++ b/assets/layers/hostel/hostel.json @@ -0,0 +1,68 @@ +{ + "minzoom": 12, + "pointRendering": [ + {id": + "location": [ + "point", + "centroid" + ], + "marker": [ + { + "icon": "circle", + "color": "white" + }, + { + "icon": "./assets/layers/hostels/hostel.svg" + } + ] + } + ], + "tagRenderings": [ + "images", + "reviews", + { + "id": "name", + "question": { + "en": "What is the name of this hostel?" + }, + "render": { + "en": "This hostel is called {name}" + }, + "freeform": { + "key": "name" + } + }, + { + "builtin": "brand", + "override": { + "question": { + "en": "Is this hostel part of a bigger brand?" + } + } + }, + "contact", + "internet-all", + "dog-access" + ], + "lineRendering": [ + { + "width": 1, + "color": "blue" + } + ], + "name": { + "en": "Hostels" + }, + "id": "hostel", + "description": { + "en": "A hostel is a type of tourist accomodation where people can sleep in a room shared with strangers" + }, + "source": { + "osmTags": "tourism=hostel" + }, + "title": { + "render": { + "en": "Hostel {name}" + } + } +} diff --git a/assets/layers/hostel/hostel.svg b/assets/layers/hostel/hostel.svg new file mode 100644 index 000000000..7cda45f6b --- /dev/null +++ b/assets/layers/hostel/hostel.svg @@ -0,0 +1,109 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/assets/layers/hostel/hostel.svg.license b/assets/layers/hostel/hostel.svg.license new file mode 100644 index 000000000..eb7905b0c --- /dev/null +++ b/assets/layers/hostel/hostel.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: OSM-Carto +SPDX-License-Identifier: CC0 \ No newline at end of file diff --git a/assets/layers/hostel/license_info.json b/assets/layers/hostel/license_info.json new file mode 100644 index 000000000..ae6b3f1a3 --- /dev/null +++ b/assets/layers/hostel/license_info.json @@ -0,0 +1,12 @@ +[ + { + "path": "hostel.svg", + "license": "CC0-1.0", + "authors": [ + "OSM-Carto" + ], + "sources": [ + "" + ] + } +] \ No newline at end of file diff --git a/assets/layers/hotel/hotel.json b/assets/layers/hotel/hotel.json index 11de3d088..ad4f73b3b 100644 --- a/assets/layers/hotel/hotel.json +++ b/assets/layers/hotel/hotel.json @@ -125,13 +125,18 @@ "pl": "Nazwa tego hotelu to {name}" } }, - "phone", - "email", - "website", + { + "builtin": "brand", + "override": { + "question": { + "en": "Is this hotel part of a bigger brand?" + } + } + }, + "contact", "wheelchair-access", - "internet", - "internet-fee", - "internet-ssid" + "internet-all", + "dog-access" ], "allowMove": { "enableImproveAccuracy": true, diff --git a/assets/layers/questions/questions.json b/assets/layers/questions/questions.json index 0a8dc2d88..a93570559 100644 --- a/assets/layers/questions/questions.json +++ b/assets/layers/questions/questions.json @@ -2902,6 +2902,31 @@ "render": { "*": "{preset_description()}" } + }, + { + "id": "brand", + "question": { + "en": "Is this part of a bigger brand?" + }, + "render": { + "en": "Part of {brand}" + }, + "freeform": { + "key": "brand", + "addExtraTags": ["nobrand="] + }, + "mappings": [ + { + "if": "nobrand=yes", + "addExtraTags": [ + "brand=", + "brand:wikidata=" + ], + "then": { + "en": "Not part of a bigger brand" + } + } + ] } ] } diff --git a/assets/themes/hotels/hotels.json b/assets/themes/hotels/hotels.json index 0ac067212..70d033f40 100644 --- a/assets/themes/hotels/hotels.json +++ b/assets/themes/hotels/hotels.json @@ -35,6 +35,7 @@ "startLon": 4.3755, "layers": [ "hotel", + "hostel", { "builtin": [ "love_hotel"