Skip to content

Commit

Permalink
City and castle walls.
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitystorm committed Nov 15, 2012
1 parent 981ac37 commit 1de420d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 33 deletions.
54 changes: 23 additions & 31 deletions citywalls.mss
Original file line number Diff line number Diff line change
@@ -1,32 +1,24 @@
/*
#citywalls {
[zoom >= 14] {
line-color: grey;
line-width: 4;
line-opacity: 0.8;
[zoom >= 15] {
line-width: 6;
}
[zoom >= 16] {
line-width: 9;
}
}
}

<Style name="citywalls">
<Rule>
&maxscale_zoom14;
&minscale_zoom14;
<LineSymbolizer stroke-linejoin="round" stroke="grey" stroke-width="4" stroke-opacity="0.8"/>
</Rule>
<Rule>
&maxscale_zoom15;
&minscale_zoom15;
<LineSymbolizer stroke-linejoin="round" stroke="grey" stroke-width="6" stroke-opacity="0.8"/>
</Rule>
<Rule>
&maxscale_zoom16;
&minscale_zoom18;
<LineSymbolizer stroke-linejoin="round" stroke="grey" stroke-width="9" stroke-opacity="0.8"/>
</Rule>
</Style>
<Style name="castle_walls"> <- lines and polygons layers
<Rule>
&maxscale_zoom14;
&minscale_zoom15;
<LineSymbolizer stroke="#999" stroke-width="1"/>
</Rule>
<Rule>
&maxscale_zoom16;
<LineSymbolizer stroke="#888" stroke-width="2"/>
</Rule>
</Style>
*/
.castlewalls {
[zoom >= 14] {
line-color: #999;
line-width: 1;
}
[zoom >= 16] {
line-color: #888;
line-width: 2;
}
}
4 changes: 2 additions & 2 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
"dbname": "gis"
},
"id": "castlewalls",
"class": "",
"class": "castlewalls",
"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": {},
Expand All @@ -340,7 +340,7 @@
"dbname": "gis"
},
"id": "castlewalls-poly",
"class": "",
"class": "castlewalls",
"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": {},
Expand Down

0 comments on commit 1de420d

Please sign in to comment.