From 742683d9d0bba555bc3ef0f36df19f2d94f783f2 Mon Sep 17 00:00:00 2001 From: sembruk Date: Fri, 6 Apr 2018 13:24:06 +0300 Subject: [PATCH] Color for plastic --- recycling.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recycling.json b/recycling.json index 77211c1..39ca841 100644 --- a/recycling.json +++ b/recycling.json @@ -25,6 +25,9 @@ "{% if tags.amenity == 'recycling' %}", " {% set key = 'amenity' %}", " {% set value = tags.amenity %}", + " {% if attribute(tags, 'recycling:plastic_bottles') == 'yes' or attribute(tags, 'recycling:plastic') == 'yes' %}", + " {% set color='green' %}", + " {% endif %}", "{% endif %}", "{% set kv = key ~ '=' ~ value %}" ], @@ -38,7 +41,10 @@ "{% if const[kv] %}", "{{ const[kv].sign|raw }}", "{% endif %}" - ] + ], + "style": { + "color": "{{ color }}" + } }, "info": [ "",