From eabf4367033b57df33570fd8a227a8917413776c 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 20:57:26 +0100 Subject: [PATCH] Health: more/better icons, map key --- health.json | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/health.json b/health.json index e7ab82b..5995c6a 100644 --- a/health.json +++ b/health.json @@ -58,19 +58,31 @@ "{{ tagTransList('healthcare:speciality', attribute(tags, 'healthcare:speciality')) }}", "{% endif %}" ], - "markerSign": "{{ const[value] }}" + "markerSign": "{{ const[value]|raw }}" }, + "info": [ + "<table>", + "{% for value, sign in const %}", + " <tr>", + " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>", + " <td>{{ tagTrans('amenity', value) }}</td>", + " </tr>", + "{% endfor %}", + "</table>" + ], "const": { "baby_hatch": "🚼", + "blood_bank": "<img src='maki:blood-bank'>", + "blood_donation": "<img src='maki:blood-bank'>", "clinic": "🏥", - "dentist": "☤", - "defibrillator": "❤", - "doctor": "☤", - "doctors": "☤", + "defibrillator": "<img src='maki:defibrillator'>", + "dentist": "<img src='maki:dentist'>", + "doctor": "<img src='maki:doctor'>", + "doctors": "<img src='maki:doctor'>", "hospital": "🏥", "nursing_home": "", - "pharmacy": "", + "pharmacy": "<img src='maki:pharmacy'>", "social_facility": "", - "veterinary": "🐕" + "veterinary": "<img src='maki:veterinary'>" } -} +} \ No newline at end of file