Skip to content

Commit

Permalink
Extract the land-color into a variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitystorm committed Dec 2, 2012
1 parent 5ee440c commit 3d47572
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,13 @@
}
}

/* man_made=cutline */
#landcover-line {
[zoom >= 14] {
line-width: 3;
line-join: round;
line-cap: square;
line-color: #f2efe9;
line-color: @land-color;
[zoom >= 16] {
line-width: 6;
}
Expand Down
4 changes: 2 additions & 2 deletions shapefiles.mss
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

#world {
[zoom >= 0][zoom < 10] {
polygon-fill: #f2efe9;
polygon-fill: @land-color;
}
}

#coast-poly {
[zoom >= 10] {
polygon-fill: #f2efe9;
polygon-fill: @land-color;
}
}

Expand Down
2 changes: 2 additions & 0 deletions style.mss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ Map {
@book-fonts: "DejaVu Sans Book", "unifont Medium";
@bold-fonts: "DejaVu Sans Bold", "unifont Medium";
@oblique-fonts: "DejaVu Sans Oblique", "unifont Medium";

@land-color: #f2efe9;
4 changes: 2 additions & 2 deletions water-features.mss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#piers-area {
[zoom >= 12] {
polygon-fill: #f2efe9;
polygon-fill: @land-color;
}
}

Expand All @@ -48,7 +48,7 @@
}
[man_made = 'pier'][zoom >= 11] {
line-width: 1.5;
line-color: #f2efe9;
line-color: @land-color;
[zoom >= 13] { line-width: 3; }
[zoom >= 16] { line-width: 7; }
}
Expand Down

0 comments on commit 3d47572

Please sign in to comment.