diff --git a/base.mss b/base.mss index 4383e36..f7744b5 100644 --- a/base.mss +++ b/base.mss @@ -106,6 +106,20 @@ } } +#abandoned[zoom>=18] { + [building!=null] { + polygon-fill:@building; + line-color:darken(@building,20%); + line-width:0.4; + } + + 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 @@ -304,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%); 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 +}