|
|
{ "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": [ "(", "nwr[amenity~\"^(fire_station|hospital)$\"];", "nwr[emergency~\"^(lifeguard)$\"];", ")" ], "13": [ "(", "nwr[amenity~\"^(fire_station|hospital|police)$\"];", "nwr[emergency~\"^(lifeguard)$\"];", "node[emergency~\"^(phone|defibrillator|access_point)$\"];", "node[highway=emergency_access_point];", ")" ] }, "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 %}", "{% elseif tags.highway == 'emergency_access_point' %}", "{% set key = 'highway' %}", "{% set value = tags.highway %}", "{% endif %}", "{% set kv = key ~ \"=\" ~ value %}" ], "description": "{{ tagTrans(key, value) }}", "markerSign": [ "{% set data = const[kv] %}", "{% if data %}", "{{ data.sign|raw }}", "{% endif %}" ], "markerSymbol": "{{ markerPointer({ fillColor: data.background|default('#f27f6a') })|raw }}", "listMarkerSymbol": "{{ markerCircle({ fillColor: data.background|default('#f27f6a') })|raw }}" }, "info": [ "<table>", "{% for value, data in const %}", "{% if data.zoom <= map.zoom %}", " <tr>", " <td>{{ markerCircle({ fillColor: data.background|default('#f27f6a') })|raw }}<div class='sign'>{{ data.sign|raw }}</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=lifeguard": { "zoom": "11", "sign": "<i class='far fa-life-ring'></i>" }, "emergency=phone": { "zoom": "13", "sign": "📞" }, "emergency=defibrillator": { "zoom": "13", "sign": "<img data-src='maki:defibrillator?fill=white'>", "background": "#009262" }, "highway=emergency_access_point": { "zoom": "13", "sign": "<img data-src='maki:hospital?fill=white'>", "background": "#009262" } }, "filter": { "type": { "name": "{{ trans('filter:type') }}", "type": "select", "show_default": "true", "values": { "fire_station": { "name": "{{ tagTrans('amenity', 'fire_station') }}", "query": "nwr[amenity=fire_station]" }, "hospital": { "name": "{{ tagTrans('amenity', 'hospital') }}", "query": "nwr[amenity=hospital]" }, "police": { "name": "{{ tagTrans('amenity', 'police') }}", "query": "nwr[amenity=police]" }, "lifeguard": { "name": "{{ tagTrans('emergency', 'lifeguard') }}", "query": "nwr[emergency=lifeguard]" }, "emergency_phone": { "name": "{{ tagTrans('emergency', 'phone') }}", "query": "node[emergency=phone]" }, "defibrillator": { "name": "{{ tagTrans('emergency', 'defibrillator') }}", "query": "node[emergency=defibrillator]" }, "emergency_access_point": { "name": "{{ tagTrans('highway', 'emergency_access_point') }}", "query": "(node[highway=emergency_access_point];node[emergency=access_point];)" } } } } }
|