Skip to content

Commit

Permalink
Restore previous rendering of natural=sand overlay pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisenbe committed Aug 29, 2019
1 parent 0775810 commit c2ff337
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,10 @@
polygon-pattern-gamma: 0.3;
}
}
[natural = 'sand'][zoom >= 5] {
polygon-pattern-file: url('symbols/beach.png');
polygon-pattern-alignment: global;
}
[int_wetland != null][zoom >= 5] {
polygon-pattern-file: url('symbols/wetland.png');
polygon-pattern-alignment: global;
Expand Down
2 changes: 1 addition & 1 deletion project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ Layer:
tags->'leaf_type' AS leaf_type,
way_area/NULLIF(POW(!scale_denominator!*0.001*0.28,2),0) AS way_pixels
FROM planet_osm_polygon
WHERE ("natural" IN ('bare_rock', 'mud', 'wetland', 'wood', 'beach', 'shoal', 'reef', 'scrub') OR landuse = 'forest')
WHERE ("natural" IN ('bare_rock', 'mud', 'wetland', 'wood', 'beach', 'shoal', 'reef', 'scrub', 'sand') OR landuse = 'forest')
AND building IS NULL
AND way_area > 1*!pixel_width!::real*!pixel_height!::real
ORDER BY COALESCE(layer,0), way_area DESC
Expand Down

0 comments on commit c2ff337

Please sign in to comment.