From f07d0458373f3f3f4230bca5e4daeb318f4f47a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <plepe@noreply.openstreetbrowser.org> 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": [ + "<table>", + "{% for value, data in const %}", + "{% if data.zoom <= map.zoom %}", + " <tr>", + " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", + " <td>{{ tagTrans('amenity', value) }}</td>", + " </tr>", + "{% endif %}", + "{% endfor %}", + "</table>" + ], "const": { - "atm": "💵", - "bank": "🏢", - "bureau_de_change": "⇄" + "atm": { + "sign": "<img src='maki:bank?size=11'>", + "zoom": 15 + }, + "bank": { + "sign": "<img src='maki:building'>", + "zoom": 14 + }, + "bureau_de_change": { + "sign": "⇄", + "zoom": 15 + } } -} +} \ No newline at end of file