Skip to content

Commit

Permalink
Merge pull request #2952 from matthijsmelissen/small-water-areas
Browse files Browse the repository at this point in the history
Do not render small water areas on low zoom
  • Loading branch information
matthijsmelissen authored Dec 11, 2017
2 parents 6ece627 + ba368d3 commit 63c05ac
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions water.mss
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,26 @@
}
}

[landuse = 'basin'][zoom >= 7]::landuse {
polygon-fill: @water-color;
[way_pixels >= 4] {
polygon-gamma: 0.75;
}
[way_pixels >= 64] {
polygon-gamma: 0.6;
[landuse = 'basin']::landuse {
[zoom >= 7][way_pixels >= 32],
[zoom >= 8] {
polygon-fill: @water-color;
[way_pixels >= 4] {
polygon-gamma: 0.75;
}
[way_pixels >= 64] {
polygon-gamma: 0.6;
}
}
}

[natural = 'water']::natural,
[landuse = 'reservoir']::landuse,
[waterway = 'riverbank']::waterway {
[zoom >= 0] {
[zoom >= 0][zoom < 1][way_pixels >= 4],
[zoom >= 1][zoom < 2][way_pixels >= 16],
[zoom >= 2][zoom < 8][way_pixels >= 32],
[zoom >= 8] {
polygon-fill: @water-color;
[way_pixels >= 4] {
polygon-gamma: 0.75;
Expand Down

0 comments on commit 63c05ac

Please sign in to comment.