Skip to content

Commit

Permalink
Add oneway arrow label to oneway roads only
Browse files Browse the repository at this point in the history
  • Loading branch information
mstock committed Mar 23, 2014
1 parent 417a032 commit 3348f42
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions labels.mss
Original file line number Diff line number Diff line change
Expand Up @@ -456,16 +456,18 @@
/* ONE-WAY ARROWS
/* ================================================================== */

#motorway_label[oneway!=0][zoom>=16],
#mainroad_label[oneway!=0][zoom>=16],
#minorroad_label[oneway!=0][zoom>=16] {
marker-placement:line;
marker-max-error: 0.5;
marker-spacing: 200;
marker-file: url(img/icon/oneway.svg);
[oneway=-1] { marker-file: url(img/icon/oneway-reverse.svg); }
[zoom=16] { marker-transform: "scale(0.5)"; }
[zoom=17] { marker-transform: "scale(0.75)"; }
#motorway_label,
#mainroad_label,
#minorroad_label {
[oneway!=''][oneway!='no'][zoom>=16] {
marker-placement:line;
marker-max-error: 0.5;
marker-spacing: 200;
marker-file: url(img/icon/oneway.svg);
[oneway=-1] { marker-file: url(img/icon/oneway-reverse.svg); }
[zoom=16] { marker-transform: "scale(0.5)"; }
[zoom=17] { marker-transform: "scale(0.75)"; }
}
}


Expand Down

0 comments on commit 3348f42

Please sign in to comment.