From 3d475726a416343eba311e3dd089eee4ca64be76 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Sun, 2 Dec 2012 14:12:29 +0000 Subject: [PATCH] Extract the land-color into a variable. --- landcover.mss | 3 ++- shapefiles.mss | 4 ++-- style.mss | 2 ++ water-features.mss | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/landcover.mss b/landcover.mss index b9c5103c4a..4ba40422d2 100644 --- a/landcover.mss +++ b/landcover.mss @@ -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; } diff --git a/shapefiles.mss b/shapefiles.mss index eb0810ee41..0fb50cfbed 100644 --- a/shapefiles.mss +++ b/shapefiles.mss @@ -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; } } diff --git a/style.mss b/style.mss index 34af319686..179b4fb453 100644 --- a/style.mss +++ b/style.mss @@ -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; diff --git a/water-features.mss b/water-features.mss index 22a67723c6..b071b69aaf 100644 --- a/water-features.mss +++ b/water-features.mss @@ -28,7 +28,7 @@ #piers-area { [zoom >= 12] { - polygon-fill: #f2efe9; + polygon-fill: @land-color; } } @@ -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; } }