From f07d0458373f3f3f4230bca5e4daeb318f4f47a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Fri, 26 Jan 2018 21:09:58 +0100 Subject: [PATCH] Financial: map key, better icons --- financial.json | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/financial.json b/financial.json index 61f6a1c..3f6a114 100644 --- a/financial.json +++ b/financial.json @@ -33,11 +33,32 @@ }, "feature": { "description": "{{ tagTrans('amenity', tags.amenity) }}", - "markerSign": "{{ const[tags.amenity] }}" + "markerSign": "{{ const[tags.amenity].sign|raw }}" }, + "info": [ + "", + "{% for value, data in const %}", + "{% if data.zoom <= map.zoom %}", + " ", + " ", + " ", + " ", + "{% endif %}", + "{% endfor %}", + "
{{ markerCircle({})|raw }}
{{ data.sign|raw }}
{{ tagTrans('amenity', value) }}
" + ], "const": { - "atm": "💵", - "bank": "🏢", - "bureau_de_change": "⇄" + "atm": { + "sign": "", + "zoom": 15 + }, + "bank": { + "sign": "", + "zoom": 14 + }, + "bureau_de_change": { + "sign": "⇄", + "zoom": 15 + } } -} +} \ No newline at end of file