From ac243396f01e53a48b99bbbc3bd119e2221335d9 Mon Sep 17 00:00:00 2001 From: andrewbuck40 Date: Fri, 27 Sep 2013 19:38:52 -0500 Subject: [PATCH 1/3] Adding abandoned buildings at z18. --- base.mss | 14 ++++++++++++++ hdm.mml | 31 ++++++++++++++++++++++++++++++- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/base.mss b/base.mss index 4383e36..d24c8e8 100644 --- a/base.mss +++ b/base.mss @@ -106,6 +106,20 @@ } } +#abandoned[zoom>=18] { + [building!=null] { + polygon-fill:@building; + line-color:darken(@building,5%); + line-width:0.2; + } + + text-name:'"X"'; + text-face-name:@sans_bold; + text-placement:point; + text-fill:@other_text; + text-halo-fill: @other_halo; + text-halo-radius: 1; +} /* ================================================================== */ /* RELIEF diff --git a/hdm.mml b/hdm.mml index f02e351..df0ede2 100644 --- a/hdm.mml +++ b/hdm.mml @@ -518,6 +518,35 @@ "extent_from_subquery": "true" } }, + { + "extent": [ + -179.99999692067183, + -84.96651228427099, + 179.99999692067183, + 84.96651228427098 + ], + "Datasource": { + "type": "postgis", + "table": "( SELECT way, (tags->'abandoned:building') AS building\n FROM planet_osm_polygon\n WHERE tags ? 'abandoned:building'\n) AS data", + "key_field": "", + "geometry_field": "way", + "extent_cache": "auto", + "extent": "3227542.51,-671237.42,3266191.94,-643301.64", + "dbname": "osm", + "user": "buck", + "id": "abandoned", + "project": "hdm", + "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over", + "port": "5432" + }, + "id": "abandoned", + "class": "", + "geometry": "polygon", + "srs-name": "900913", + "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over", + "advanced": {}, + "name": "abandoned" + }, { "Datasource": { "dbname": "hdm", @@ -1323,4 +1352,4 @@ "attribution": "Data © OpenStreetMap (and) contributors, CC-BY-SA", "description": "", "name": "hdm" -} \ No newline at end of file +} From dee3946b79cd8d8ffb5799c4ec9f127999676aa1 Mon Sep 17 00:00:00 2001 From: andrewbuck40 Date: Mon, 30 Sep 2013 09:29:35 -0500 Subject: [PATCH 2/3] Making abandoned:building styling consistent with other buildings. --- base.mss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base.mss b/base.mss index d24c8e8..137da4f 100644 --- a/base.mss +++ b/base.mss @@ -109,11 +109,11 @@ #abandoned[zoom>=18] { [building!=null] { polygon-fill:@building; - line-color:darken(@building,5%); - line-width:0.2; + line-color:darken(@building,20%); + line-width:0.4; } - text-name:'"X"'; + text-name:'"x"'; text-face-name:@sans_bold; text-placement:point; text-fill:@other_text; From 402996fccddd373bcfad58b9d16df9a6488fb5a2 Mon Sep 17 00:00:00 2001 From: andrewbuck40 Date: Tue, 1 Oct 2013 12:12:00 -0500 Subject: [PATCH 3/3] Adding barrier=dry_bush rendered like a hedge, more gray. --- base.mss | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/base.mss b/base.mss index 137da4f..f7744b5 100644 --- a/base.mss +++ b/base.mss @@ -318,6 +318,19 @@ Map { } } +.barriers[zoom>=16][barrier='dry_bush'] { + ::alternate { + line-color: #B0B5A0; + } + line-width:2; + line-color:darken(#B0B5A0,15%); + line-dasharray:2,4; + line-cap: round; + [zoom=16] { + line-width: 1; + } +} + .barriers[zoom>=16][barrier = 'wall'] { line-width:1; line-color: darken(@land,25%);