Main categories of OpenStreetBrowser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

124 lines
3.5 KiB

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
gl: Servizos de emerxencia
hu: Vészhelyzet
it: Servizi d'emergenza
ja: 緊急サービス
nb: Nødtjenester
nl: Hulpdiensten
oc: Servicis d'urgéncia
pl: Służby ratunkowe
pt: Emergência
pt-br: Emergência
ro: Servicii urgenta
ru: Экстренные службы
sr: Хитне службе
tr: Acil Servisler
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: |-
{% set key = null %}
{% set value = null %}
{% for k, d in const %}
{% set kv = k|split('=') %}
{% if attribute(tags, kv[0]) and kv[1] in attribute(tags, kv[0])|split(';') %}
{% set key = kv[0] %}
{% set value = kv[1] %}
{% endif %}
{% endfor %}
{% set kv = key ~ "=" ~ value %}
{% set data = const[kv] %}
description: |-
{{ tagTransList(key, attribute(tags, key)) }}
markerSign: |-
{% 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];)