Skip to content

Commit

Permalink
moving from amenity=embassy to office=diplomatic and differentiating …
Browse files Browse the repository at this point in the history
…embassy and consulate (#4168)
  • Loading branch information
imagico authored Sep 6, 2020
1 parent 8e4cb4f commit b10aef3
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 9 deletions.
3 changes: 2 additions & 1 deletion project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand Down
35 changes: 27 additions & 8 deletions style/amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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] {
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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] {
Expand Down
38 changes: 38 additions & 0 deletions symbols/office/consulate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes

0 comments on commit b10aef3

Please sign in to comment.