Skip to content

Commit

Permalink
Change river-color to #8fcadd, water-color to #a2d1e0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisenbe committed Oct 7, 2019
1 parent 5a4304e commit 17b8cc2
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
1 change: 1 addition & 0 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ Layer:
way,
"natural",
waterway,
water,
landuse,
name,
way_area/NULLIF(POW(!scale_denominator!*0.001*0.28,2),0) AS way_pixels,
Expand Down
5 changes: 4 additions & 1 deletion style.mss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ Map {
background-color: @land-color;
}

@water-color: #aad3df;
@water-color: #a2d1e0; // Lch(81,17,227)
@river-color: #8fcadd; // Lch(78,21,227)

@land-color: #f2efe9;


@standard-halo-radius: 1;
@standard-halo-fill: rgba(255,255,255,0.6);
37 changes: 31 additions & 6 deletions water.mss
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,40 @@
}
}

[natural = 'water']::natural,
[landuse = 'reservoir']::landuse,
[waterway = 'riverbank']::waterway {
[natural = 'water'][water != 'river'][water != 'canal'][waterway != 'riverbank']::natural,
[landuse = 'reservoir']::landuse {
[zoom >= 0][zoom < 1][way_pixels >= 4],
[zoom >= 1][zoom < 2][way_pixels >= 16],
[zoom >= 2][zoom < 8][way_pixels >= 32],
[zoom >= 8] {
[int_intermittent = 'no'] {
polygon-fill: @water-color;
}
[int_intermittent = 'yes'] {
polygon-pattern-file: url('symbols/intermittent_water.png');
[way_pixels >= 4] {
polygon-pattern-gamma: 0.75;
}
[way_pixels >= 64] {
polygon-pattern-gamma: 0.6;
}
}
[way_pixels >= 4] {
polygon-gamma: 0.75;
}
[way_pixels >= 64] {
polygon-gamma: 0.6;
}
}
}

[natural = 'water'][water = 'river']::natural,
[natural = 'water'][water = 'canal']::natural,
[waterway = 'riverbank']::waterway {
[zoom >= 2][zoom < 6][way_pixels >= 4],
[zoom >= 6] {
[int_intermittent = 'no'] {
polygon-fill: @river-color;
[way_pixels >= 4] {
polygon-gamma: 0.75;
}
Expand Down Expand Up @@ -113,7 +138,7 @@
line-join: round;
line-clip: false;
}
line-color: @water-color;
line-color: @river-color;
line-width: 0.7;
[zoom >= 9] { line-width: 1.2; }
[zoom >= 10] { line-width: 1.6; }
Expand Down Expand Up @@ -143,7 +168,7 @@
}
}

water/line-color: @water-color;
water/line-color: @river-color;
water/line-width: 2;
water/line-cap: round;
water/line-join: round;
Expand Down Expand Up @@ -202,7 +227,7 @@
background/line-color: @land-color;
}
water/line-width: 2;
water/line-color: @water-color;
water/line-color: @river-color;

[bridge = 'yes'] {
bridgecasing/line-color: black;
Expand Down

0 comments on commit 17b8cc2

Please sign in to comment.