From 9307cc1656f3dcc0f13c25515a15f5efdd39d8a1 Mon Sep 17 00:00:00 2001
From: Robin van der Linde <robin-van-der-linde@noreply.openstreetbrowser.org>
Date: Mon, 20 May 2019 10:56:06 +0200
Subject: [PATCH] Fixed coloring

---
 maestro.json | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/maestro.json b/maestro.json
index 248846b..81ebc4c 100644
--- a/maestro.json
+++ b/maestro.json
@@ -13,14 +13,14 @@
     },
     "feature": {
         "pre": [
-            "{% if 'tags.payment:maestro' == 'yes' %}",
+            "{% if attribute(tags, 'payment:maestro') == 'yes' %}",
             "  {% set payment_color='green' %}",
-            "{% elseif 'tags.payment:maestro' == 'no' %}",
+            "{% elseif attribute(tags, 'payment:maestro') == 'no' %}",
             "  {% set payment_color='red' %}",
             "{% else %}",
             "  {% set payment_color='white' %}",
             "{% endif %}"
         ],
-        "markerSymbol": "{{markerPointer({\\\"fillColor\\\": payment_color }})|raw }}"
+        "markerSymbol": "{{ markerPointer({\"fillColor\":payment_color})|raw }}"
     }
 }