diff --git a/emergency.json b/emergency.json index ab044352a..0b39e12db 100644 --- a/emergency.json +++ b/emergency.json @@ -28,13 +28,23 @@ ], "13": [ "(", - "node[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];", - "way[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];", - "relation[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];", + "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 %}" + ], "description": "{{ tagTrans('amenity', tags.amenity) }}", "markerSign": [ "{% set data = const[tags.amenity] %}", @@ -49,28 +59,28 @@ "{% if data.zoom <= map.zoom %}", "