From 28d66373680dda160b4b899621c5c89aa1c52143 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sun, 12 Mar 2023 19:09:59 +0100 Subject: [PATCH] feat: Add printer cartridges to recycling --- assets/layers/recycling/license_info.json | 13 +++++- .../layers/recycling/printer_cartridges.svg | 8 ++++ assets/layers/recycling/recycling.json | 40 ++++++++++++++++++- .../layers/waste_disposal/waste_disposal.json | 7 +++- 4 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 assets/layers/recycling/printer_cartridges.svg diff --git a/assets/layers/recycling/license_info.json b/assets/layers/recycling/license_info.json index 6698ec44c..957f2d98f 100644 --- a/assets/layers/recycling/license_info.json +++ b/assets/layers/recycling/license_info.json @@ -164,6 +164,17 @@ "https://github.com/streetcomplete/StreetComplete/blob/master/res/graphics/recycling%20icons/plastic_packaging.svg" ] }, + { + "path": "printer_cartridges.svg", + "license": "CC-BY", + "authors": [ + "Noun Project", + "Zach Bogart" + ], + "sources": [ + "https://thenounproject.com/icon/ink-4963274/" + ] + }, { "path": "recycling-14.svg", "license": "CC0", @@ -205,4 +216,4 @@ "https://github.com/streetcomplete/StreetComplete/blob/master/res/graphics/recycling%20icons/small_electrical_appliances.svg" ] } -] \ No newline at end of file +] diff --git a/assets/layers/recycling/printer_cartridges.svg b/assets/layers/recycling/printer_cartridges.svg new file mode 100644 index 000000000..860f6ad4d --- /dev/null +++ b/assets/layers/recycling/printer_cartridges.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/assets/layers/recycling/recycling.json b/assets/layers/recycling/recycling.json index 64194c210..d18055081 100644 --- a/assets/layers/recycling/recycling.json +++ b/assets/layers/recycling/recycling.json @@ -223,6 +223,15 @@ }, "then": "circle:white;./assets/layers/recycling/plastic.svg" }, + { + "if": { + "and": [ + "_waste_amount=1", + "recycling:printer_cartridges=yes" + ] + }, + "then": "circle:white;./assets/layers/recycling/printer_cartridges.svg" + }, { "if": { "and": [ @@ -416,6 +425,15 @@ }, "then": "circle:white;./assets/layers/recycling/plastic.svg" }, + { + "if": { + "and": [ + "_waste_amount>1", + "recycling:printer_cartridges=yes" + ] + }, + "then": "circle:white;./assets/layers/recycling/printer_cartridges.svg" + }, { "if": { "and": [ @@ -549,6 +567,7 @@ "recycling:plastic_bottles=", "recycling:plastic_packaging=", "recycling:plastic=", + "recycling:printer_cartridges=", "recycling:scrap_metal=", "recycling:shoes=", "recycling:small_appliances=", @@ -918,6 +937,18 @@ "class": "medium" } }, + { + "if": "recycling:printer_cartridges=yes", + "ifnot": "recycling:printer_cartridges=", + "then": { + "en": "Printer cartridges (inkjet/toner) can be recycled here", + "nl": "Printer cartridges (inkjet/toner) kunnen hier gerecycled worden" + }, + "icon": { + "path": "./assets/layers/recycling/printer_cartridges.svg", + "class": "medium" + } + }, { "if": "recycling:scrap_metal=yes", "ifnot": "recycling:scrap_metal=", @@ -1271,6 +1302,13 @@ }, "osmTags": "recycling:plastic=yes" }, + { + "question": { + "en": "Recycling of printer cartridges", + "nl": "Recycling van printer cartridges" + }, + "osmTags": "recycling:printer_cartridges=yes" + }, { "question": { "en": "Recycling of scrap metal", @@ -1336,4 +1374,4 @@ "enableRelocation": true, "enableImproveAccuracy": true } -} \ No newline at end of file +} diff --git a/assets/layers/waste_disposal/waste_disposal.json b/assets/layers/waste_disposal/waste_disposal.json index aca9b8cd2..216ec4a67 100644 --- a/assets/layers/waste_disposal/waste_disposal.json +++ b/assets/layers/waste_disposal/waste_disposal.json @@ -197,6 +197,11 @@ ] } ], + "allowMove": { + "enableImproveAccuracy": true, + "enableRelocation": true + }, + "deletion": true, "filter": [ { "#": "ignore-possible-duplicate", @@ -216,4 +221,4 @@ ] } ] -} \ No newline at end of file +}