Browse Source

Emergency: map key

fossil
parent
commit
658f12458a
  1. 30
      emergency.json

30
emergency.json

@ -19,14 +19,18 @@
}, },
"query": { "query": {
"11": [ "11": [
"(node[amenity~\"^(fire_station|hospital)$\"];",
"(",
"node[amenity~\"^(fire_station|hospital)$\"];",
"way[amenity~\"^(fire_station|hospital)$\"];", "way[amenity~\"^(fire_station|hospital)$\"];",
"relation[amenity~\"^(fire_station|hospital)$\"])"
"relation[amenity~\"^(fire_station|hospital)$\"];",
")"
], ],
"13": [ "13": [
"(node[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];",
"(",
"node[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];",
"way[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];", "way[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];",
"relation[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"])"
"relation[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];",
")"
] ]
}, },
"feature": { "feature": {
@ -38,18 +42,34 @@
"{% endif %}" "{% endif %}"
] ]
}, },
"info": [
"<table>",
"{% for value, data in const %}",
"{% if data.zoom <= map.zoom %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign }}</div></td>",
" <td>{{ tagTrans('amenity', value) }}</td>",
" </tr>",
"{% endif %}",
"{% endfor %}",
"</table>"
],
"const": { "const": {
"fire_station": { "fire_station": {
"zoom": "11",
"sign": "🔥" "sign": "🔥"
}, },
"hospital": { "hospital": {
"zoom": "11",
"sign": "🏥" "sign": "🏥"
}, },
"police": { "police": {
"zoom": "13",
"sign": "👮" "sign": "👮"
}, },
"emergency_phone": { "emergency_phone": {
"zoom": "13",
"sign": "📞" "sign": "📞"
} }
} }
}
}
Loading…
Cancel
Save