Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions base.mss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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%);
Expand Down
31 changes: 30 additions & 1 deletion hdm.mml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1323,4 +1352,4 @@
"attribution": "Data © OpenStreetMap (and) contributors, CC-BY-SA",
"description": "",
"name": "hdm"
}
}