diff --git a/emergency.json b/emergency.json index 1d82e0b..062f4ad 100644 --- a/emergency.json +++ b/emergency.json @@ -19,14 +19,18 @@ }, "query": { "11": [ - "(node[amenity~\"^(fire_station|hospital)$\"];", + "(", + "node[amenity~\"^(fire_station|hospital)$\"];", "way[amenity~\"^(fire_station|hospital)$\"];", - "relation[amenity~\"^(fire_station|hospital)$\"])" + "relation[amenity~\"^(fire_station|hospital)$\"];", + ")" ], "13": [ - "(node[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];", + "(", + "node[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];", "way[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];", - "relation[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"])" + "relation[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];", + ")" ] }, "feature": { @@ -38,18 +42,34 @@ "{% endif %}" ] }, + "info": [ + "", + "{% for value, data in const %}", + "{% if data.zoom <= map.zoom %}", + " ", + " ", + " ", + " ", + "{% endif %}", + "{% endfor %}", + "
{{ markerCircle({})|raw }}
{{ data.sign }}
{{ tagTrans('amenity', value) }}
" + ], "const": { "fire_station": { + "zoom": "11", "sign": "🔥" }, "hospital": { + "zoom": "11", "sign": "🏥" }, "police": { + "zoom": "13", "sign": "👮" }, "emergency_phone": { + "zoom": "13", "sign": "📞" } } -} +} \ No newline at end of file