From d5e7c905a635202e31485d288772bf5e671fd502 Mon Sep 17 00:00:00 2001 From: sembruk Date: Fri, 6 Apr 2018 13:33:50 +0300 Subject: [PATCH] Fixed color --- recycling.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/recycling.json b/recycling.json index 003ae32..e9d79e7 100644 --- a/recycling.json +++ b/recycling.json @@ -26,7 +26,7 @@ " {% set key = 'amenity' %}", " {% set value = tags.amenity %}", " {% if attribute(tags, 'recycling:plastic_bottles') == 'yes' or attribute(tags, 'recycling:plastic') == 'yes' %}", - " {% set color='green' %}", + " {% set recycling_color='green' %}", " {% endif %}", "{% endif %}", "{% set kv = key ~ '=' ~ value %}" @@ -41,7 +41,10 @@ "{% if const[kv] %}", "{{ const[kv].sign|raw }}", "{% endif %}" - ] + ], + "markerSymbol": "{{ markerPointer({\"fillColor\": recycling_color })|raw }}", + "listMarkerSymbol": "{{ markerCircle({\"fillColor\": recycling_color })|raw }}" + }, "info": [ "", @@ -64,8 +67,7 @@ "const": { "amenity=recycling": { "minZoom": 13, - "sign": "", - "color": "{{ color }}" + "sign": "" } } }