Skip to content
Browse files

Extract water colour into a variable.

  • Loading branch information...
1 parent 3d47572 commit 937da202f5f3f27101517847ae89f504c9d40df7 @gravitystorm committed Dec 2, 2012
Showing with 19 additions and 18 deletions.
  1. +1 −1 landcover.mss
  2. +3 −3 project.mml
  3. +2 −1 style.mss
  4. +13 −13 water.mss
View
2 landcover.mss
@@ -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;
}
View
6 project.mml
@@ -6,9 +6,9 @@
85.05112877980659
],
"center": [
- 0,
- 0,
- 2
+ -0.124,
+ 51.475,
+ 16
],
"format": "png",
"interactivity": false,
View
3 style.mss
@@ -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;
View
26 water.mss
@@ -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,
@@ -32,7 +32,7 @@
[landuse = 'water']::water,
[natural = 'bay']::natural {
[zoom >= 6] {
- polygon-fill: #b5d0d0;
+ polygon-fill: @water-color;
polygon-gamma: 0.75;
}
}
@@ -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; }
@@ -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;
@@ -105,7 +105,7 @@
}
[waterway = 'river'][zoom >= 12] {
- line-color: #b5d0d0;
+ line-color: @water-color;
line-width: 2;
line-cap: round;
line-join: round;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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]";
@@ -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]";

0 comments on commit 937da20

Please sign in to comment.
Something went wrong with that request. Please try again.