Skip to content

Commit

Permalink
Add directions
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitystorm committed Nov 16, 2012
1 parent c300c82 commit a83c27b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 25 deletions.
59 changes: 41 additions & 18 deletions other.mss
Original file line number Diff line number Diff line change
Expand Up @@ -3279,27 +3279,50 @@
<LineSymbolizer stroke="#444" stroke-width="0.4"/>
</Rule>
</Style>
<Style name="directions">
<Rule>
<Filter>[oneway] = 'yes'</Filter>
&maxscale_zoom16;
<LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="1" stroke-dasharray="0,12,10,152"/>
<LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="2" stroke-dasharray="0,12,9,153"/>
<LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="3" stroke-dasharray="0,18,2,154"/>
<LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="4" stroke-dasharray="0,18,1,155"/>
</Rule>
<Rule>
<Filter>[oneway] = '-1'</Filter>
&maxscale_zoom16;
<LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="1" stroke-dasharray="0,12,10,152"/>
<LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="2" stroke-dasharray="0,13,9,152"/>
<LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="3" stroke-dasharray="0,14,2,158"/>
<LineSymbolizer stroke-linejoin="bevel" stroke="#6c70d5" stroke-width="4" stroke-dasharray="0,15,1,158"/>
</Rule>
</Style>
*/

.directions {
[zoom >= 16] {
[oneway = 'yes'] {
a/line-width: 1;
a/line-dasharray: 0,12,10,152;
a/line-color: #6c70d5;
a/line-join: bevel;
b/line-width: 2;
b/line-dasharray: 0,12,9,153;
b/line-color: #6c70d5;
b/line-join: bevel;
c/line-width: 3;
c/line-dasharray: 0,18,2,154;
c/line-color: #6c70d5;
c/line-join: bevel;
d/line-width: 4;
d/line-dasharray: 0,18,1,155;
d/line-color: #6c70d5;
d/line-join: bevel;
}
[oneway = '-1'] {
a/line-width: 1;
a/line-dasharray: 0,12,10,152;
a/line-color: #6c70d5;
a/line-join: bevel;
b/line-width: 2;
b/line-dasharray: 0,13,9,152;
b/line-color: #6c70d5;
b/line-join: bevel;
c/line-width: 3;
c/line-dasharray: 0,14,2,158;
c/line-color: #6c70d5;
c/line-join: bevel;
d/line-width: 4;
d/line-dasharray: 0,15,1,158;
d/line-color: #6c70d5;
d/line-join: bevel;
}
}
}

#misc-boundaries {
[zoom >= 7] {
[zoom < 14] {
Expand Down
14 changes: 7 additions & 7 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@
"dbname": "gis"
},
"id": "direction-pre-bridges",
"class": "",
"class": "directions",
"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 Expand Up @@ -863,7 +863,7 @@
"dbname": "gis"
},
"id": "bridges-directions0",
"class": "",
"class": "directions",
"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 Expand Up @@ -932,7 +932,7 @@
"dbname": "gis"
},
"id": "bridges-directions1",
"class": "",
"class": "directions",
"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 Expand Up @@ -1001,7 +1001,7 @@
"dbname": "gis"
},
"id": "bridges-directions2",
"class": "",
"class": "directions",
"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 Expand Up @@ -1070,7 +1070,7 @@
"dbname": "gis"
},
"id": "bridges-directions3",
"class": "",
"class": "directions",
"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 Expand Up @@ -1139,7 +1139,7 @@
"dbname": "gis"
},
"id": "bridges-directions4",
"class": "",
"class": "directions",
"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 Expand Up @@ -1208,7 +1208,7 @@
"dbname": "gis"
},
"id": "bridges-directions5",
"class": "",
"class": "directions",
"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 a83c27b

Please sign in to comment.