Browse Source

Emergency: use emergency=phone instead amenity=emergency_phone

fossil
parent
commit
ad500f33c1
  1. 28
      emergency.json

28
emergency.json

@ -28,13 +28,23 @@
], ],
"13": [ "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": { "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) }}", "description": "{{ tagTrans('amenity', tags.amenity) }}",
"markerSign": [ "markerSign": [
"{% set data = const[tags.amenity] %}", "{% set data = const[tags.amenity] %}",
@ -49,28 +59,28 @@
"{% if data.zoom <= map.zoom %}", "{% if data.zoom <= map.zoom %}",
" <tr>", " <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign }}</div></td>", " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign }}</div></td>",
" <td>{{ tagTrans('amenity', value) }}</td>",
" <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
" </tr>", " </tr>",
"{% endif %}", "{% endif %}",
"{% endfor %}", "{% endfor %}",
"</table>" "</table>"
], ],
"const": { "const": {
"fire_station": {
"amenity=fire_station": {
"zoom": "11", "zoom": "11",
"sign": "🔥" "sign": "🔥"
}, },
"hospital": {
"amenity=hospital": {
"zoom": "11", "zoom": "11",
"sign": "🏥" "sign": "🏥"
}, },
"police": {
"amenity=police": {
"zoom": "13", "zoom": "13",
"sign": "👮" "sign": "👮"
}, },
"emergency_phone": {
"emergency=phone": {
"zoom": "13", "zoom": "13",
"sign": "📞" "sign": "📞"
} }
} }
}
}
Loading…
Cancel
Save