Skip to content

Commit

Permalink
Themes(police): add jail and checkpoint icons
Browse files Browse the repository at this point in the history
  • Loading branch information
pietervdvn committed Sep 24, 2024
1 parent f15f381 commit 169ee29
Show file tree
Hide file tree
Showing 6 changed files with 125 additions and 1 deletion.
76 changes: 76 additions & 0 deletions assets/layers/police/checkpoint.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions assets/layers/police/checkpoint.svg.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Pieter Vander Vennet
SPDX-License-Identifier: CC0
10 changes: 10 additions & 0 deletions assets/layers/police/jail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions assets/layers/police/jail.svg.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: craigclark
SPDX-License-Identifier: CC0-1.0
18 changes: 18 additions & 0 deletions assets/layers/police/license_info.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
18 changes: 17 additions & 1 deletion assets/layers/police/police.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 169ee29

Please sign in to comment.