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 committed Feb 16, 2018
1 parent 798d4eb commit 49b8f57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,9 @@

#landuse-overlay {
[landuse = 'military'][zoom >= 8][way_pixels > 900],
[landuse = 'military'][zoom >= 13] {
[landuse = 'military'][zoom >= 13],
[amenity = 'police'][zoom >= 13],
[amenity = 'fire_station'][zoom >= 13] {
polygon-pattern-file: url('symbols/military_red_hatch.png');
polygon-pattern-alignment: global;
line-color: @military;
Expand Down
3 changes: 2 additions & 1 deletion project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,10 @@ Layer:
(SELECT
way,
landuse,
amenity,
way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels
FROM planet_osm_polygon
WHERE landuse = 'military'
WHERE (landuse = 'military' OR amenity = 'police' OR amenity = 'fire_station')
AND building IS NULL
) AS landuse_overlay
properties:
Expand Down

0 comments on commit 49b8f57

Please sign in to comment.