Skip to content

Commit

Permalink
Extract water colour into a variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitystorm committed Dec 2, 2012
1 parent 3d47572 commit 937da20
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion landcover.mss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#landcover {
[leisure = 'swimming_pool'][zoom >= 14]::leisure {
polygon-fill: #b5d0d0;
polygon-fill: @water-color;
line-color: blue;
line-width: 0.5;
}
Expand Down
6 changes: 3 additions & 3 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
85.05112877980659
],
"center": [
0,
0,
2
-0.124,
51.475,
16
],
"format": "png",
"interactivity": false,
Expand Down
3 changes: 2 additions & 1 deletion style.mss
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Map {
background-color: #b5d0d0;
background-color: @water-color;
}

@book-fonts: "DejaVu Sans Book", "unifont Medium";
@bold-fonts: "DejaVu Sans Bold", "unifont Medium";
@oblique-fonts: "DejaVu Sans Oblique", "unifont Medium";

@water-color: #b5d0d0;
@land-color: #f2efe9;
26 changes: 13 additions & 13 deletions water.mss
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
[waterway = 'canal'] {
[zoom >= 9]::waterway {
polygon-gamma: 0.75;
polygon-fill: #b5d0d0;
polygon-fill: @water-color;
}
}

[landuse = 'basin'][zoom >= 7]::landuse {
polygon-gamma: 0.75;
polygon-fill: #b5d0d0;
polygon-fill: @water-color;
}

[natural = 'lake']::natural,
Expand All @@ -32,7 +32,7 @@
[landuse = 'water']::water,
[natural = 'bay']::natural {
[zoom >= 6] {
polygon-fill: #b5d0d0;
polygon-fill: @water-color;
polygon-gamma: 0.75;
}
}
Expand Down Expand Up @@ -80,7 +80,7 @@

#water-lines-low-zoom {
[waterway = 'river'][zoom >= 8][zoom < 12] {
line-color: #b5d0d0;
line-color: @water-color;
line-width: 0.7;
[zoom >= 9] { line-width: 1.2; }
[zoom >= 10] { line-width: 1.6; }
Expand All @@ -96,7 +96,7 @@
}

[waterway = 'wadi'][zoom >= 13] {
line-color: #b5d0d0;
line-color: @water-color;
line-width: 1;
line-dasharray: 4,4;
line-cap: round;
Expand All @@ -105,7 +105,7 @@
}

[waterway = 'river'][zoom >= 12] {
line-color: #b5d0d0;
line-color: @water-color;
line-width: 2;
line-cap: round;
line-join: round;
Expand Down Expand Up @@ -136,7 +136,7 @@
[zoom >= 14] {
a/line-width: 6;
a/line-dasharray: 4,2;
a/line-color: #b5d0d0;
a/line-color: @water-color;
b/line-width: 4;
b/line-color: white;
text-min-distance: 200;
Expand All @@ -156,7 +156,7 @@
}

[waterway = 'canal'][zoom >= 12][zoom < 14] {
line-color: #b5d0d0;
line-color: @water-color;
line-width: 3;
line-cap: round;
line-join: round;
Expand All @@ -176,13 +176,13 @@
[waterway = 'drain'] {
[zoom >= 13][zoom < 15] {
line-width: 1;
line-color: #b5d0d0;
line-color: @water-color;
}
}

[waterway = 'stream'][zoom >= 15] {
line-width: 2;
line-color: #b5d0d0;
line-color: @water-color;
text-name: "[name]";
text-size: 8;
text-face-name: @book-fonts;
Expand All @@ -202,7 +202,7 @@
[waterway = 'ditch'] {
[zoom >= 15] {
line-width: 1;
line-color: #b5d0d0;
line-color: @water-color;
text-name: "[name]";
text-face-name: @book-fonts;
text-size: 8;
Expand All @@ -221,7 +221,7 @@

[waterway = 'canal'][zoom >= 14] {
line-width: 7;
line-color: #b5d0d0;
line-color: @water-color;
line-join: round;
line-cap: round;
text-name: "[name]";
Expand Down Expand Up @@ -278,7 +278,7 @@
line-color: #000;
line-join: round;
b/line-width: 6;
b/line-color: #b5d0d0;
b/line-color: @water-color;
b/line-cap: round;
b/line-join: round;
text-name: "[name]";
Expand Down

0 comments on commit 937da20

Please sign in to comment.