|
|
{ "type": "overpass", "name": { "ast": "Servicios d'emerxencia", "ca": "Serveis d'emergència", "cs": "Pohotovostní služby", "de": "Notfalldienste", "el": "Υπηρεσίες Έκτακτης Ανάγκης", "en": "Emergency Services", "es": "Servicios de emergencia", "et": "Hädaabi teenused", "fr": "Services d'urgence", "hu": "Vészhelyzet", "it": "Servizi d'emergenza", "ja": "緊急サービス", "nl": "Hulpdiensten", "pt": "Emergência", "pt-br": "Emergência", "ro": "Servicii urgenta", "ru": "Экстренные службы", "uk": "Швидка допомога" }, "query": { "11": [ "(", "node[amenity~\"^(fire_station|hospital)$\"];", "way[amenity~\"^(fire_station|hospital)$\"];", "relation[amenity~\"^(fire_station|hospital)$\"];", ")" ], "13": [ "(", "node[amenity~\"^(fire_station|hospital|police)$\"];", "way[amenity~\"^(fire_station|hospital|police)$\"];", "relation[amenity~\"^(fire_station|hospital|police)$\"];", "node[emergency~\"^(phone)$\"];", ")" ] }, "feature": { "pre": [ "{% if tags.amenity in [ 'fire_station', 'hospital', 'police' ] %}", "{% set key = 'amenity' %}", "{% set value = tags.amenity %}", "{% elseif tags.emergency %}", "{% set key = 'emergency' %}", "{% set value = tags.emergency %}", "{% endif %}", "{% set kv = key ~ \"=\" ~ value %}" ], "description": "{{ tagTrans(key, value) }}", "markerSign": [ "{% set data = const[kv] %}", "{% if data %}", "{{ data.sign }}", "{% endif %}" ] }, "info": [ "<table>", "{% for value, data in const %}", "{% if data.zoom <= map.zoom %}", " <tr>", " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign }}</div></td>", " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>", " </tr>", "{% endif %}", "{% endfor %}", "</table>" ], "const": { "amenity=fire_station": { "zoom": "11", "sign": "🔥" }, "amenity=hospital": { "zoom": "11", "sign": "🏥" }, "amenity=police": { "zoom": "13", "sign": "👮" }, "emergency=phone": { "zoom": "13", "sign": "📞" } } }
|