From 35cd979b5ea8ffe3b11927dc6d151d5e2f54ed0d Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 6 Jul 2025 01:07:17 +0200 Subject: [PATCH] Themes(nature): add nesting sites, fix #2446 --- assets/layers/nesting_site/license_info.json | 12 + assets/layers/nesting_site/nest.svg | 1 + assets/layers/nesting_site/nest.svg.license | 2 + assets/layers/nesting_site/nesting_site.json | 112 ++++++ .../layers/police_call_box/license_info.json | 340 +++++++++--------- assets/themes/nature/nature.json | 3 +- 6 files changed, 299 insertions(+), 171 deletions(-) create mode 100644 assets/layers/nesting_site/license_info.json create mode 100644 assets/layers/nesting_site/nest.svg create mode 100644 assets/layers/nesting_site/nest.svg.license create mode 100644 assets/layers/nesting_site/nesting_site.json diff --git a/assets/layers/nesting_site/license_info.json b/assets/layers/nesting_site/license_info.json new file mode 100644 index 0000000000..06a9739eef --- /dev/null +++ b/assets/layers/nesting_site/license_info.json @@ -0,0 +1,12 @@ +[ + { + "path": "nest.svg", + "license": "CC-BY 4.0", + "authors": [ + "Nick Bluth, https://thenounproject.com/nickbluth" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Noun_nest_203785_006699.svg" + ] + } +] \ No newline at end of file diff --git a/assets/layers/nesting_site/nest.svg b/assets/layers/nesting_site/nest.svg new file mode 100644 index 0000000000..4279ac4be2 --- /dev/null +++ b/assets/layers/nesting_site/nest.svg @@ -0,0 +1 @@ +Artboard 10 Copy 6Created with Sketch. \ No newline at end of file diff --git a/assets/layers/nesting_site/nest.svg.license b/assets/layers/nesting_site/nest.svg.license new file mode 100644 index 0000000000..dbd7e78350 --- /dev/null +++ b/assets/layers/nesting_site/nest.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Nick Bluth, https://thenounproject.com/nickbluth +SPDX-License-Identifier: CC-BY 4.0 \ No newline at end of file diff --git a/assets/layers/nesting_site/nesting_site.json b/assets/layers/nesting_site/nesting_site.json new file mode 100644 index 0000000000..8ebd3d4993 --- /dev/null +++ b/assets/layers/nesting_site/nesting_site.json @@ -0,0 +1,112 @@ +{ + "credits": "Pieter Vander Vennet", + "minzoom": 10, + + + + "pointRendering": [ + { + "location": [ + "point", + "centroid" + ], + "marker": [ + { + "icon": "circle", + "color": "white" + }, + { + "icon": "./assets/layers/nesting_site/nest.svg" + } + ] + } + ], + "tagRenderings": [ + "images", + { + "question": { + "en": "What species is this nesting site built for?" + }, + "id": "nest_species", + "render": { + "en": "

About the nesting species

{wikipedia(species:wikidata)}" + }, + "freeform": { + "key": "species:wikidata", + "type": "wikidata", + "helperArgs": [ + "species" + ] + } + }, + { + "question": { + "en": "How is this nesting site installed?" + }, + "id": "nest_support", + "mappings": [ + { + "if": "support=wall", + "then": { + "en": "Mounted on a wall" + } + }, + { + "if": "support=pole", + "then": { + "en": "Mounted on a pole" + } + } + ] + } + ], + "lineRendering": [ + { + "width": 1, + "color": "blue" + } + ], + "credits:uid": 3818858, + "source": { + "osmTags": "man_made=nesting_site" + }, + "id": "nesting_site", + "description": { + "en": "A man-made device equipped with one or multiple nests, serving as an artificial nesting aid for wild animals" + }, + "name": { + "en": "Artificial nesting sites" + }, + "title": { + "render": { + "en": "Nesting site" + } + }, + "presets": [ + { + "title": { + "en": "a nesting site" + }, + "tags": [ + "man_made=nesting_site" + ] + }, + { + "title": { + "en": "a nesting site on a wall" + }, + "tags": [ + "man_made=nesting_site", + "support=wall" + ], + "snapToLayer": [ + "walls_and_buildings" + ], + "maxSnapDistance": 1 + } + ], + "allowMove": { + "enableImproveAccuracy": true, + "enableRelocation": false + } +} diff --git a/assets/layers/police_call_box/license_info.json b/assets/layers/police_call_box/license_info.json index c8af183bd8..a42fda5035 100644 --- a/assets/layers/police_call_box/license_info.json +++ b/assets/layers/police_call_box/license_info.json @@ -209,176 +209,6 @@ "https://commons.wikimedia.org/wiki/File:Edinburgh_City_police_box_001.jpg" ] }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, - { - "path": "Haiku_OS_–_Misc_TARDIS.svg", - "license": "MIT", - "authors": [ - "" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" - ] - }, { "path": "Edinburgh_City_police_box_001.jpg", "license": "CC-BY 3.0", @@ -388,5 +218,175 @@ "sources": [ "https://commons.wikimedia.org/wiki/File:Edinburgh_City_police_box_001.jpg" ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] + }, + { + "path": "Haiku_OS_–_Misc_TARDIS.svg", + "license": "MIT", + "authors": [ + "" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Haiku_OS_%E2%80%93_Misc_TARDIS.svg" + ] } ] \ No newline at end of file diff --git a/assets/themes/nature/nature.json b/assets/themes/nature/nature.json index efe86c9c04..6c5bc51d33 100644 --- a/assets/themes/nature/nature.json +++ b/assets/themes/nature/nature.json @@ -70,7 +70,8 @@ "bbq", "firepit", "insect_hotel", - "artwork" + "artwork", + "nesting_site" ], "override": { "minzoom": 16