Browse Source

Emergency/Health: move defibrillator from health to emergency

sidewalks-category
parent
commit
dc2a2434ab
  1. 11
      emergency.json
  2. 12
      health.json

11
emergency.json

@ -33,7 +33,7 @@
"node[amenity~\"^(fire_station|hospital|police)$\"];", "node[amenity~\"^(fire_station|hospital|police)$\"];",
"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|defibrillator)$\"];",
"node[highway=emergency_access_point];", "node[highway=emergency_access_point];",
")" ")"
] ]
@ -91,6 +91,11 @@
"zoom": "13", "zoom": "13",
"sign": "📞" "sign": "📞"
}, },
"emergency=defibrillator": {
"zoom": "13",
"sign": "<img data-src='maki:defibrillator?fill=white'>",
"background": "#009262"
},
"highway=emergency_access_point": { "highway=emergency_access_point": {
"zoom": "13", "zoom": "13",
"sign": "<img data-src='maki:hospital?fill=white'>", "sign": "<img data-src='maki:hospital?fill=white'>",
@ -119,6 +124,10 @@
"name": "{{ tagTrans('emergency', 'phone') }}", "name": "{{ tagTrans('emergency', 'phone') }}",
"query": "node[emergency=phone]" "query": "node[emergency=phone]"
}, },
"defibrillator": {
"name": "{{ tagTrans('emergency', 'defibrillator') }}",
"query": "node[emergency=defibrillator]"
},
"emergency_access_point": { "emergency_access_point": {
"name": "{{ tagTrans('highway', 'emergency_access_point') }}", "name": "{{ tagTrans('highway', 'emergency_access_point') }}",
"query": "node[highway=emergency_access_point]" "query": "node[highway=emergency_access_point]"

12
health.json

@ -32,7 +32,6 @@
"14": [ "14": [
"(", "(",
"node[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];", "node[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
"node[emergency=defibrillator];",
"way[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];", "way[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
"relation[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];", "relation[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
"node[healthcare];", "node[healthcare];",
@ -43,10 +42,7 @@
}, },
"feature": { "feature": {
"pre": [ "pre": [
"{% if tags.emergency in [ 'defibrillator' ] %}",
" {% set key = 'emergency' %}",
" {% set value = tags.emergency %}",
"{% elseif tags.healthcare %}",
"{% if tags.healthcare %}",
" {% set key = 'healthcare' %}", " {% set key = 'healthcare' %}",
" {% set value = tags.healthcare|split(';')[0] %}", " {% set value = tags.healthcare|split(';')[0] %}",
"{% else %}", "{% else %}",
@ -112,12 +108,6 @@
], ],
"sign": "<img data-src='maki:pharmacy'>" "sign": "<img data-src='maki:pharmacy'>"
}, },
{
"types": [
"emergency=defibrillator"
],
"sign": "<img data-src='maki:defibrillator'>"
},
{ {
"types": [ "types": [
"healthcare=dentist", "healthcare=dentist",

Loading…
Cancel
Save