From 67319fc8d9741b9e96e6182bdf04624e49c3f963 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sat, 1 Jan 2022 00:03:08 +0100 Subject: [PATCH] =?UTF-8?q?Test=20with=20waste=20theme=20(Happy=20New=20Ye?= =?UTF-8?q?ar=F0=9F=8E=87=F0=9F=8E=89)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/layers/recycling/license_info.json | 12 +++++ assets/layers/recycling/recycling-14.svg | 40 +++++++++++++++++ assets/layers/recycling/recycling.json | 53 +++++++++++++++++++++++ assets/themes/waste/waste.json | 29 +++++++++++++ 4 files changed, 134 insertions(+) create mode 100644 assets/layers/recycling/license_info.json create mode 100644 assets/layers/recycling/recycling-14.svg create mode 100644 assets/layers/recycling/recycling.json create mode 100644 assets/themes/waste/waste.json diff --git a/assets/layers/recycling/license_info.json b/assets/layers/recycling/license_info.json new file mode 100644 index 0000000000..035586de75 --- /dev/null +++ b/assets/layers/recycling/license_info.json @@ -0,0 +1,12 @@ +[ + { + "path": "recycling-14.svg", + "license": "CC0-1.0", + "authors": [ + "Michael Glanznig" + ], + "sources": [ + "https://github.com/gmgeo/osmic/blob/master/amenity/recycling-14.svg" + ] + } +] \ No newline at end of file diff --git a/assets/layers/recycling/recycling-14.svg b/assets/layers/recycling/recycling-14.svg new file mode 100644 index 0000000000..6244f41247 --- /dev/null +++ b/assets/layers/recycling/recycling-14.svg @@ -0,0 +1,40 @@ + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/assets/layers/recycling/recycling.json b/assets/layers/recycling/recycling.json new file mode 100644 index 0000000000..1fc67853a1 --- /dev/null +++ b/assets/layers/recycling/recycling.json @@ -0,0 +1,53 @@ +{ + "id": "recycling", + "name": { + "en": "Recycling", + "nl": "Recycling" + }, + "description": { + "en": "A layer with recycling containers and centres", + "nl": "Een laag met recyclagingcontainers en -centrums" + }, + "source": { + "osmTags": "amenity=recycling" + }, + "minzoom": 12, + "title": { + "render": { + "en": "Recycling facility", + "nl": "Recyclingfaciliteit" + } + }, + "mapRendering": [ + { + "location": [ + "point", + "centroid" + ], + "icon": "./assets/layers/recycling/recycling-14.svg" + } + ], + "presets": [], + "tagRenderings": [ + { + "id": "recycling-type", + "mappings": [ + { + "if": "recycling-type=container", + "then": { + "en": "This is a recycling container", + "nl": "Dit is een recyclingcontainer" + } + }, + { + "if": "recycling-type=centre", + "then": { + "en": "This is a recycling centre", + "nl": "Dit is een recyclingcentrum" + } + } + ] + } + ], + "filter": [] +} \ No newline at end of file diff --git a/assets/themes/waste/waste.json b/assets/themes/waste/waste.json new file mode 100644 index 0000000000..4e70754d23 --- /dev/null +++ b/assets/themes/waste/waste.json @@ -0,0 +1,29 @@ +{ + "id": "waste", + "maintainer": "", + "version": "2021-12-31", + "language": [ + "en", + "nl" + ], + "title": { + "en": "Waste", + "nl": "Afval" + }, + "description": { + "en": "Map showing waste baskets and recycling facilities.", + "nl": "Kaart met afvalbakken en recyclingfaciliteiten." + }, + "icon": "./assets/layers/recycling/recycling-14.svg", + "startZoom": 19, + "startLat": 53.24865, + "startLon": 6.60075, + "layers": [ + { + "builtin": "waste_basket", + "override": { + "minzoom": 12 + } + } + ] +} \ No newline at end of file