Skip to content

Commit

Permalink
fade in forest from z8-z11 (fixes gravitystorm#1387)
Browse files Browse the repository at this point in the history
  • Loading branch information
nebulon42 committed Aug 18, 2015
1 parent 0c96da7 commit 175152b
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
@grass: #cdebb0; // also meadow, common, garden, village_green, conservation
@golf_course: #b5e3b5;
@scrub: #b5e3b5;
@forest-z8: #d4e0cf; // Lch(88,10,136)
@forest-z9: #cbdcc4; // Lch(86,14,136)
@forest-z10: #c2d8ba; // Lch(84,18,136)
@forest-z11: #b7d4ac; // Lch(82,24,136)
@forest: #add19e; // Lch(80,30,135)
@forest-text: #46673b; // Lch(40,30,135)
@park: #c8facc; // Lch(94,30,145) also recreation_ground
Expand Down Expand Up @@ -242,8 +246,20 @@

[feature = 'landuse_forest'],
[feature = 'natural_wood'] {
[zoom >= 8] {
polygon-fill: @forest;
[zoom >= 8] {
polygon-fill: @forest-z8;
[zoom >= 9] {
polygon-fill: @forest-z9;
}
[zoom >= 10] {
polygon-fill: @forest-z10;
}
[zoom >= 11] {
polygon-fill: @forest-z11;
}
[zoom >= 12] {
polygon-fill: @forest;
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
Expand Down Expand Up @@ -420,7 +436,19 @@
}

[feature = 'wetland_swamp'][zoom >= 8] {
polygon-fill: @forest;
polygon-fill: @forest-z8;
[zoom >= 9] {
polygon-fill: @forest-z9;
}
[zoom >= 10] {
polygon-fill: @forest-z10;
}
[zoom >= 11] {
polygon-fill: @forest-z11;
}
[zoom >= 12] {
polygon-fill: @forest;
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
Expand Down

0 comments on commit 175152b

Please sign in to comment.