From 04509bc3e7783f55e593679ddfba2263ecf7f3de Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 10 Feb 2024 23:31:59 +0100 Subject: [PATCH] Themes: add mountain rescue stations to the ski map --- .../layers/mountain_rescue/license_info.json | 12 ++++ .../mountain_rescue/mountain_rescue.json | 60 +++++++++++++++++++ assets/layers/mountain_rescue/red_cross.svg | 39 ++++++++++++ .../mountain_rescue/red_cross.svg.license | 2 + assets/themes/ski/ski.json | 3 +- 5 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 assets/layers/mountain_rescue/license_info.json create mode 100644 assets/layers/mountain_rescue/mountain_rescue.json create mode 100644 assets/layers/mountain_rescue/red_cross.svg create mode 100644 assets/layers/mountain_rescue/red_cross.svg.license diff --git a/assets/layers/mountain_rescue/license_info.json b/assets/layers/mountain_rescue/license_info.json new file mode 100644 index 000000000..4ec1d6506 --- /dev/null +++ b/assets/layers/mountain_rescue/license_info.json @@ -0,0 +1,12 @@ +[ + { + "path": "red_cross.svg", + "license": "trivial", + "authors": [ + " \tJon Harald Soby" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Flag_of_the_Red_Cross.svg" + ] + } +] \ No newline at end of file diff --git a/assets/layers/mountain_rescue/mountain_rescue.json b/assets/layers/mountain_rescue/mountain_rescue.json new file mode 100644 index 000000000..13b6125e7 --- /dev/null +++ b/assets/layers/mountain_rescue/mountain_rescue.json @@ -0,0 +1,60 @@ +{ + "credits": "Not logged in", + "minzoom": 10, + "pointRendering": [ + { + "location": [ + "point", + "centroid" + ], + "marker": [ + { + "icon": "circle", + "color": "white" + }, + { + "icon": "./assets/layers/mountain_rescue/red_cross.svg" + } + ], + "rotation": "45" + } + ], + "tagRenderings": [ + "images" + ], + "lineRendering": [ + { + "width": "3", + "color": "#ed333b" + } + ], + "id": "mountain_rescue", + "name": { + "en": "Mountain rescue stations" + }, + "description": { + "en": "A building where first aid responders store material and might be on watch" + }, + "source": { + "osmTags": "emergency=mountain_rescue" + }, + "title": { + "render": { + "en": "Mountain rescue station" + } + }, + "deletion": true, + "allowMove": { + "enableRelocation": false + }, + "presets": [ + { + "title": { + "en": "a mountain rescue station" + }, + "tags": [ + "emergency=mountain_rescue" + ] + } + ] +} diff --git a/assets/layers/mountain_rescue/red_cross.svg b/assets/layers/mountain_rescue/red_cross.svg new file mode 100644 index 000000000..a57ebf5c2 --- /dev/null +++ b/assets/layers/mountain_rescue/red_cross.svg @@ -0,0 +1,39 @@ + + + + + + diff --git a/assets/layers/mountain_rescue/red_cross.svg.license b/assets/layers/mountain_rescue/red_cross.svg.license new file mode 100644 index 000000000..1f886d90a --- /dev/null +++ b/assets/layers/mountain_rescue/red_cross.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Jon Harald Soby +SPDX-License-Identifier: trivial \ No newline at end of file diff --git a/assets/themes/ski/ski.json b/assets/themes/ski/ski.json index b6565af9b..1209804a7 100644 --- a/assets/themes/ski/ski.json +++ b/assets/themes/ski/ski.json @@ -15,7 +15,8 @@ "builtin": [ "guidepost", "map", - "information_board" + "information_board", + "mountain_rescue" ], "override": { "minzoom": 13