Skip to content

Commit

Permalink
Adding rendering for amenity=police and amenity=fire_station areas (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kocio-pl authored May 8, 2018
1 parent 8f15d8d commit c9b8f6c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,21 @@
}
}

[feature = 'amenity_fire_station'][zoom >= 8][way_pixels > 900],
[feature = 'amenity_police'][zoom >= 8][way_pixels > 900],
[feature = 'amenity_fire_station'][zoom >= 13],
[feature = 'amenity_police'][zoom >= 13] {
polygon-fill: #F3E3DD;
line-color: @military;
line-opacity: 0.24;
line-width: 1.0;
line-offset: -0.5;
[zoom >= 15] {
line-width: 2;
line-offset: -1.0;
}
}

[feature = 'amenity_parking'][zoom >= 10],
[feature = 'amenity_bicycle_parking'][zoom >= 10],
[feature = 'amenity_motorcycle_parking'][zoom >= 10],
Expand Down
6 changes: 3 additions & 3 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ Layer:
('aeroway_' || (CASE WHEN aeroway IN ('apron', 'aerodrome') THEN aeroway ELSE NULL END)) AS aeroway,
('amenity_' || (CASE WHEN amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'university', 'college', 'school', 'taxi',
'hospital', 'kindergarten', 'grave_yard', 'prison', 'place_of_worship', 'clinic', 'ferry_terminal',
'marketplace', 'community_centre', 'social_facility', 'arts_centre', 'parking_space', 'bus_station')
THEN amenity ELSE NULL END)) AS amenity,
'marketplace', 'community_centre', 'social_facility', 'arts_centre', 'parking_space', 'bus_station',
'fire_station', 'police') THEN amenity ELSE NULL END)) AS amenity,
('landuse_' || (CASE WHEN landuse IN ('quarry', 'vineyard', 'orchard', 'cemetery', 'residential', 'garages', 'meadow', 'grass',
'allotments', 'forest', 'farmyard', 'farmland', 'greenhouse_horticulture',
'recreation_ground', 'village_green', 'retail', 'industrial', 'railway', 'commercial',
Expand All @@ -144,7 +144,7 @@ Layer:
OR aeroway IN ('apron', 'aerodrome')
OR amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'taxi', 'university', 'college', 'school', 'hospital', 'kindergarten',
'grave_yard', 'place_of_worship', 'prison', 'clinic', 'ferry_terminal', 'marketplace', 'community_centre', 'social_facility',
'arts_centre', 'parking_space', 'bus_station')
'arts_centre', 'parking_space', 'bus_station', 'fire_station', 'police')
OR man_made IN ('works')
OR military IN ('danger_area')
OR "natural" IN ('beach', 'shoal', 'heath', 'mud', 'marsh', 'wetland', 'grassland', 'wood', 'sand', 'scree', 'shingle', 'bare_rock', 'scrub')
Expand Down

0 comments on commit c9b8f6c

Please sign in to comment.