From 169ee2941498e9968dfbf42f65c8504b6bcb7f37 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 24 Sep 2024 23:58:31 +0200 Subject: [PATCH] Themes(police): add jail and checkpoint icons --- assets/layers/police/checkpoint.svg | 76 +++++++++++++++++++++ assets/layers/police/checkpoint.svg.license | 2 + assets/layers/police/jail.svg | 10 +++ assets/layers/police/jail.svg.license | 2 + assets/layers/police/license_info.json | 18 +++++ assets/layers/police/police.json | 18 ++++- 6 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 assets/layers/police/checkpoint.svg create mode 100644 assets/layers/police/checkpoint.svg.license create mode 100644 assets/layers/police/jail.svg create mode 100644 assets/layers/police/jail.svg.license diff --git a/assets/layers/police/checkpoint.svg b/assets/layers/police/checkpoint.svg new file mode 100644 index 0000000000..0cbbf2a989 --- /dev/null +++ b/assets/layers/police/checkpoint.svg @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + diff --git a/assets/layers/police/checkpoint.svg.license b/assets/layers/police/checkpoint.svg.license new file mode 100644 index 0000000000..2452bee1e8 --- /dev/null +++ b/assets/layers/police/checkpoint.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Pieter Vander Vennet +SPDX-License-Identifier: CC0 \ No newline at end of file diff --git a/assets/layers/police/jail.svg b/assets/layers/police/jail.svg new file mode 100644 index 0000000000..6dea57293c --- /dev/null +++ b/assets/layers/police/jail.svg @@ -0,0 +1,10 @@ + + + + +Created by potrace 1.15, written by Peter Selinger 2001-2017 + + + + + \ No newline at end of file diff --git a/assets/layers/police/jail.svg.license b/assets/layers/police/jail.svg.license new file mode 100644 index 0000000000..6e96743b67 --- /dev/null +++ b/assets/layers/police/jail.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: craigclark +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/assets/layers/police/license_info.json b/assets/layers/police/license_info.json index e1d743c536..37907f7076 100644 --- a/assets/layers/police/license_info.json +++ b/assets/layers/police/license_info.json @@ -1,4 +1,22 @@ [ + { + "path": "checkpoint.svg", + "license": "CC0-1.0", + "authors": [ + "Pieter Vander Vennet" + ], + "sources": [] + }, + { + "path": "jail.svg", + "license": "CC0-1.0", + "authors": [ + "craigclark" + ], + "sources": [ + "https://svgsilh.com/image/2071965.html" + ] + }, { "path": "police.svg", "license": "CC-BY 4.0", diff --git a/assets/layers/police/police.json b/assets/layers/police/police.json index 6a2a0d47f3..d5854849c6 100644 --- a/assets/layers/police/police.json +++ b/assets/layers/police/police.json @@ -35,7 +35,21 @@ "color": "#00000000" }, { - "icon": "./assets/layers/police/police.svg" + "icon": { + "render":"./assets/layers/police/police.svg", + "mappings": [ + { + "if": "police=checkpoint", + "then": "./assets/layers/police/checkpoint.svg" + } + ] + } + } + ], + "iconBadges": [ + { + "if": "detention=yes", + "then": "circle:white;./assets/layers/police/jail.svg" } ] } @@ -134,11 +148,13 @@ "en": "Does this police office have detention facilities?", "de": "Verfügt die Polizeidienststelle über Gewahrsamsräume?" }, + "filter": true, "id": "4_z2nrdhy6tyyh4fd", "condition": "amenity=police", "mappings": [ { "if": "detention=yes", + "icon": "./assets/layers/police/jail.svg", "then": { "en": "This police office has some cells to detain people", "de": "Die Polizeidienststelle hat Zellen für die Inhaftierung von Personen"