diff --git a/amenities.mss b/amenities.mss index b92701b1..7ed7ab2f 100644 --- a/amenities.mss +++ b/amenities.mss @@ -465,6 +465,14 @@ marker-clip: false; } + [feature = 'emergency_defibrillator'][zoom >= 19] { + marker-file: url('symbols/osmfr/aed2.svg'); + marker-placement: interior; + marker-clip: false; + [access != ''][access != 'permissive'][access != 'yes'] { + marker-opacity: 0.33; + } + } [feature = 'emergency_phone'][zoom >= 19] { marker-file: url('symbols/openstreetmap-carto/amenity/emergency_phone.svg'); marker-fill: @amenity-common; diff --git a/symbols/osmfr/aed2.svg b/symbols/osmfr/aed2.svg new file mode 100644 index 00000000..b5b717fc --- /dev/null +++ b/symbols/osmfr/aed2.svg @@ -0,0 +1,68 @@ + +image/svg+xml + + + + + + + diff --git a/views.sql b/views.sql index 1c2fdb3c..f881e0ce 100644 --- a/views.sql +++ b/views.sql @@ -304,7 +304,7 @@ CREATE VIEW cyclosm_amenities_point AS OR waterway IN ('waterfall') OR historic IN ('memorial', 'monument', 'archaeological_site', 'wayside_cross', 'fort', 'wayside_shrine', 'castle', 'manor', 'city_gate') OR military IN ('bunker') - OR tags->'emergency'='phone' + OR tags->'emergency' IN ('defibrillator', 'phone') OR highway IN ('elevator', 'traffic_signals') OR ((highway='bus_stop' OR public_transport='platform') AND (tags->'shelter'='yes' OR covered='yes')) OR (power = 'generator' AND "generator:source"='wind') @@ -317,7 +317,7 @@ CREATE VIEW cyclosm_amenities_point AS WHEN shop IN ('bicycle', 'sports') THEN 0 WHEN amenity IN ('bicycle_rental') Then 10 -- Emergency - WHEN tags->'healthcare' IS NOT NULL OR tags->'emergency'='phone' OR amenity IN ('hospital', 'clinic', 'doctors', 'pharmacy') THEN 20 + WHEN tags->'healthcare' IS NOT NULL OR tags->'emergency' IN ('defibrillator', 'phone') OR amenity IN ('hospital', 'clinic', 'doctors', 'pharmacy') THEN 20 -- Other emergency-related amenities WHEN amenity IN ('bicycle_repair_station', 'compressed_air', 'drinking_water', 'police', 'toilets', 'water_point', 'charging_station') THEN 21 @@ -444,7 +444,7 @@ CREATE VIEW cyclosm_amenities_poly AS OR waterway IN ('waterfall') OR historic IN ('memorial', 'monument', 'archaeological_site', 'wayside_cross', 'fort', 'wayside_shrine', 'castle', 'manor', 'city_gate') OR military IN ('bunker') - OR tags->'emergency'='phone' + OR tags->'emergency' IN ('defibrillator', 'phone') OR highway IN ('elevator', 'traffic_signals') OR ((highway='bus_stop' OR public_transport='platform') AND (tags->'shelter'='yes' OR covered='yes')) OR (power = 'generator' AND "generator:source"='wind') @@ -456,7 +456,7 @@ CREATE VIEW cyclosm_amenities_poly AS WHEN shop IN ('bicycle', 'sports') THEN 0 WHEN amenity IN ('bicycle_rental') Then 10 -- Emergency - WHEN tags->'healthcare' IS NOT NULL OR tags->'emergency'='phone' OR amenity IN ('hospital', 'clinic', 'doctors', 'pharmacy') THEN 20 + WHEN tags->'healthcare' IS NOT NULL OR tags->'emergency'IN ('defibrillator', 'phone') OR amenity IN ('hospital', 'clinic', 'doctors', 'pharmacy') THEN 20 -- Other emergency-related amenities WHEN amenity IN ('bicycle_repair_station', 'compressed_air', 'drinking_water', 'police', 'toilets', 'water_point', 'charging_station') THEN 21