diff --git a/project.mml b/project.mml index 2a7708949e..0b34b673c2 100644 --- a/project.mml +++ b/project.mml @@ -1476,7 +1476,7 @@ Layer: 'amenity_' || CASE WHEN amenity IN ('arts_centre', 'atm', 'bank', 'bar', 'bbq', 'bicycle_rental', 'bicycle_repair_station','biergarten', 'boat_rental', 'bureau_de_change', 'bus_station', 'cafe', 'car_rental', 'car_wash', 'casino', 'charging_station', 'childcare', 'cinema', 'clinic', 'college', - 'community_centre', 'courthouse', 'dentist', 'doctors', 'drinking_water', 'driving_school', 'embassy', + 'community_centre', 'courthouse', 'dentist', 'doctors', 'drinking_water', 'driving_school', 'fast_food', 'ferry_terminal', 'fire_station', 'food_court', 'fountain', 'fuel', 'grave_yard', 'hospital', 'hunting_stand', 'ice_cream', 'internet_cafe', 'kindergarten', 'library', 'marketplace', 'nightclub', 'nursing_home', 'pharmacy', 'place_of_worship', 'police', 'post_box', @@ -1485,6 +1485,7 @@ Layer: 'university', 'vehicle_inspection', 'veterinary') THEN amenity END, 'amenity_' || CASE WHEN amenity IN ('waste_disposal') AND way_area IS NOT NULL THEN amenity END, -- Waste disposal points are rendered in the low priority layer 'amenity_' || CASE WHEN amenity IN ('vending_machine') AND tags->'vending' IN ('excrement_bags', 'parking_tickets', 'public_transport_tickets') THEN amenity END, + 'diplomatic_'|| CASE WHEN tags->'office' IN ('diplomatic') AND tags->'diplomatic' IN ('embassy', 'consulate') THEN tags->'diplomatic' ELSE NULL END, 'advertising_' || CASE WHEN tags->'advertising' in ('column') THEN tags->'advertising' END, 'emergency_' || CASE WHEN tags->'emergency' IN ('phone') AND way_area IS NULL THEN tags->'emergency' END, 'shop' || CASE WHEN shop IN ('yes', 'no', 'vacant', 'closed', 'disused', 'empty') OR shop IS NULL THEN NULL ELSE '' END, diff --git a/style/amenity-points.mss b/style/amenity-points.mss index 136f20c4d7..bbf3ea555c 100644 --- a/style/amenity-points.mss +++ b/style/amenity-points.mss @@ -396,12 +396,6 @@ marker-clip: false; } - [feature = 'amenity_embassy'][zoom >= 17] { - marker-file: url('symbols/amenity/embassy.svg'); - marker-fill: @public-service; - marker-clip: false; - } - [feature = 'amenity_library'][zoom >= 16] { marker-file: url('symbols/amenity/library.svg'); marker-fill: @culture; @@ -1202,6 +1196,18 @@ marker-fill: @office; } + [feature = 'diplomatic_embassy'][zoom >= 17] { + marker-file: url('symbols/office/embassy.svg'); + marker-fill: @office; + marker-clip: false; + } + + [feature = 'diplomatic_consulate'][zoom >= 17] { + marker-file: url('symbols/office/consulate.svg'); + marker-fill: @office; + marker-clip: false; + } + [feature = 'leisure_water_park'][zoom >= 17], [feature = 'leisure_sports_centre'][sport = 'swimming'][zoom >= 17], [feature = 'leisure_swimming_area'][zoom >= 17] { @@ -1730,7 +1736,6 @@ [feature = 'amenity_fire_station'][zoom >= 17], [feature = 'amenity_post_office'][zoom >= 17], [feature = 'amenity_prison'][zoom >= 17], - [feature = 'amenity_embassy'][zoom >= 17], [feature = 'amenity_bank'][zoom >= 17] { text-name: "[name]"; text-size: @standard-font-size; @@ -1741,7 +1746,6 @@ [feature = 'amenity_courthouse'] { text-dy: 13; } [feature = 'amenity_townhall'] { text-dy: 13; } [feature = 'amenity_prison'] { text-dy: 12; } - [feature = 'amenity_embassy'] { text-dy: 10; } [feature = 'amenity_bank'] { text-dy: 9; } text-face-name: @standard-font; text-halo-radius: @standard-halo-radius; @@ -2672,6 +2676,21 @@ } } + [feature = 'diplomatic_embassy'], + [feature = 'diplomatic_consulate'] { + [zoom >= 17] { + text-name: "[name]"; + text-size: @standard-font-size; + text-wrap-width: @standard-wrap-width; + text-line-spacing: @standard-line-spacing-size; + text-dy: 10; + text-fill: @office; + text-face-name: @standard-font; + text-halo-radius: @standard-halo-radius; + text-halo-fill: rgba(255, 255, 255, 0.6); + } + } + [feature = 'shop_supermarket'], [feature = 'shop_department_store'] { [zoom >= 16] { diff --git a/symbols/office/consulate.svg b/symbols/office/consulate.svg new file mode 100644 index 0000000000..a30e894468 --- /dev/null +++ b/symbols/office/consulate.svg @@ -0,0 +1,38 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/symbols/amenity/embassy.svg b/symbols/office/embassy.svg similarity index 100% rename from symbols/amenity/embassy.svg rename to symbols/office/embassy.svg