diff --git a/assets/layers/hotel/hotel.json b/assets/layers/hotel/hotel.json new file mode 100644 index 000000000..bf698f69b --- /dev/null +++ b/assets/layers/hotel/hotel.json @@ -0,0 +1,81 @@ +{ + "id": "hotel", + "name": { + "en": "Hotels", + "nl": "Hotels" + }, + "description": { + "en": "Layer showing all hotels", + "nl": "Laag die alle hotels toont" + }, + "source": { + "osmTags": "tourism=hotel" + }, + "minzoom": 13, + "title": { + "render": { + "en": "Hotel", + "nl": "Hotel" + }, + "mappings": [ + { + "if": "name~*", + "then": { + "en": "Hotel {name}", + "nl": "Hotel {name}" + } + } + ] + }, + "presets": [ + { + "title": { + "en": "a hotel", + "nl": "een hotel" + }, + "tags": [ + "tourism=hotel" + ] + } + ], + "mapRendering": [ + { + "location": [ + "point", + "centroid" + ], + "icon": "circle:white;./assets/layers/hotel/hotel.svg", + "iconSize": "40,40,center" + } + ], + "tagRenderings": [ + "images", + "reviews", + { + "id": "name", + "freeform": { + "key": "name", + "placeholder": { + "en": "Name of the hotel", + "nl": "Naam van het hotel" + } + }, + "question": { + "en": "What is the name of this hotel?", + "nl": "Wat is de naam van dit hotel?" + }, + "render": { + "en": "This hotel is called {name}", + "nl": "Dit hotel heet {name}" + } + }, + "phone", + "email", + "website", + "wheelchair-access" + ], + "allowMove": { + "enableImproveAccuracy": true, + "enableRelocation": true + } +} \ No newline at end of file diff --git a/assets/layers/hotel/hotel.svg b/assets/layers/hotel/hotel.svg new file mode 100644 index 000000000..879d08301 --- /dev/null +++ b/assets/layers/hotel/hotel.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/layers/hotel/license_info.json b/assets/layers/hotel/license_info.json new file mode 100644 index 000000000..38f47cac6 --- /dev/null +++ b/assets/layers/hotel/license_info.json @@ -0,0 +1,15 @@ +[ + { + "path": "hotel.svg", + "license": "", + "authors": [ + "Andy Allan", + "Michael Glanznig", + "Adamant36", + "Paul Dicker" + ], + "sources": [ + "https://github.com/gravitystorm/openstreetmap-carto/blob/master/symbols/tourism/hotel.svg" + ] + } +] \ No newline at end of file diff --git a/assets/themes/onwheels/onwheels.json b/assets/themes/onwheels/onwheels.json index 745f41d8a..2a822fe20 100644 --- a/assets/themes/onwheels/onwheels.json +++ b/assets/themes/onwheels/onwheels.json @@ -165,7 +165,18 @@ } }, "walls_and_buildings", - "elevator" + "elevator", + { + "builtin": "hotel", + "override": { + "mapRendering": [ + { + "icon": "./assets/themes/onwheels/hotel.svg", + "iconSize": "40,40,bottom" + } + ] + } + } ], "overrideAll": { "+calculatedTags": [