Main categories of OpenStreetBrowser with support for whitewater
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.
 
 

129 lines
4.4 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",
"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)$\"];",
"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=phone": {
"zoom": "13",
"sign": "📞"
},
"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]"
},
"emergency_phone": {
"name": "{{ tagTrans('emergency', 'phone') }}",
"query": "node[emergency=phone]"
},
"emergency_access_point": {
"name": "{{ tagTrans('highway', 'emergency_access_point') }}",
"query": "node[highway=emergency_access_point]"
}
}
}
}
}