Browse Source

emergency: include highway=emergency_access_point

places
parent
commit
313c608f1b
  1. 15
      emergency.json

15
emergency.json

@ -34,6 +34,7 @@
"way[amenity~\"^(fire_station|hospital|police)$\"];", "way[amenity~\"^(fire_station|hospital|police)$\"];",
"relation[amenity~\"^(fire_station|hospital|police)$\"];", "relation[amenity~\"^(fire_station|hospital|police)$\"];",
"node[emergency~\"^(phone)$\"];", "node[emergency~\"^(phone)$\"];",
"node[highway=emergency_access_point];",
")" ")"
] ]
}, },
@ -45,6 +46,9 @@
"{% elseif tags.emergency %}", "{% elseif tags.emergency %}",
"{% set key = 'emergency' %}", "{% set key = 'emergency' %}",
"{% set value = tags.emergency %}", "{% set value = tags.emergency %}",
"{% elseif tags.highway == 'emergency_access_point' %}",
"{% set key = 'highway' %}",
"{% set value = tags.highway %}",
"{% endif %}", "{% endif %}",
"{% set kv = key ~ \"=\" ~ value %}" "{% set kv = key ~ \"=\" ~ value %}"
], ],
@ -52,9 +56,11 @@
"markerSign": [ "markerSign": [
"{% set data = const[kv] %}", "{% set data = const[kv] %}",
"{% if data %}", "{% if data %}",
"{{ data.sign }}",
"{{ data.sign|raw }}",
"{% endif %}" "{% endif %}"
]
],
"markerSymbol": "{{ markerPointer({ fillColor: data.background|default('#f27f6a') })|raw }}",
"listMarkerSymbol": "{{ markerCircle({ fillColor: data.background|default('#f27f6a') })|raw }}"
}, },
"info": [ "info": [
"<table>", "<table>",
@ -84,6 +90,11 @@
"emergency=phone": { "emergency=phone": {
"zoom": "13", "zoom": "13",
"sign": "📞" "sign": "📞"
},
"highway=emergency_access_point": {
"zoom": "13",
"sign": "<img data-src='maki:hospital?fill=white'>",
"background": "#009262"
} }
} }
} }
Loading…
Cancel
Save