Skip to content

Commit

Permalink
Refactor water area MSS
Browse files Browse the repository at this point in the history
  • Loading branch information
pnorman committed Feb 28, 2016
1 parent 000470f commit 4a8ccdd
Showing 1 changed file with 19 additions and 36 deletions.
55 changes: 19 additions & 36 deletions water.mss
Original file line number Diff line number Diff line change
Expand Up @@ -17,48 +17,31 @@
}
}
}
}

[waterway = 'dock'],
[waterway = 'canal'] {
[zoom >= 9]::waterway {
polygon-fill: @water-color;
[way_pixels >= 4] {
polygon-gamma: 0.75;
}
[way_pixels >= 64] {
polygon-gamma: 0.6;
}
}
}
/*
* Water areas, of all types. Because they are rendered all the same,
* attachments can be used to reduce combinational rules
*/

[landuse = 'basin'][zoom >= 7]::landuse {
polygon-fill: @water-color;
[way_pixels >= 4] {
polygon-gamma: 0.75;
}
[way_pixels >= 64] {
polygon-gamma: 0.6;
}
}
#water-areas[waterway = 'dock'][zoom >= 9]::waterway,
#water-areas[waterway = 'canal'][zoom >= 9]::waterway,
#water-areas[landuse = 'basin'][zoom >= 7]::landuse,
#water-areas[natural = 'water'][zoom >= 6]::natural,
#water-areas[landuse = 'reservoir'][zoom >= 6]::landuse,
#water-areas[waterway = 'riverbank'][zoom >= 6]::waterway,
.ocean {
polygon-fill: @water-color;

[natural = 'water']::natural,
[landuse = 'reservoir']::landuse,
[waterway = 'riverbank']::waterway {
[zoom >= 6] {
polygon-fill: @water-color;
[way_pixels >= 4] {
polygon-gamma: 0.75;
}
[way_pixels >= 64] {
polygon-gamma: 0.6;
}
}
// Only the SQL layers have way_pixels
#water-areas[way_pixels >= 4] {
polygon-gamma: 0.75;
}
#water-areas[way_pixels >= 64] {
polygon-gamma: 0.6;
}
}

.ocean {
polygon-fill: @water-color;
}
#water-lines-casing {
[waterway = 'stream'],
[waterway = 'ditch'],
Expand Down

0 comments on commit 4a8ccdd

Please sign in to comment.