Skip to content

Commit

Permalink
Clean up highway labels
Browse files Browse the repository at this point in the history
* Make font sizes more consistent (resolves gravitystorm#544)
* Let tertiary labels start at z14 rather than z15 (resolves gravitystorm#301)
* Add label for bridleways
* Remove halo from residential/unclassified/road (resolves gravitystorm#515)
* General code clean-up
  • Loading branch information
matthijsmelissen committed Aug 2, 2014
1 parent 5b411de commit 4f33212
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions roads.mss
Original file line number Diff line number Diff line change
Expand Up @@ -2295,6 +2295,9 @@
[zoom >= 15] {
text-size: 10;
}
[zoom >= 17] {
text-size: 11;
}
}
[highway = 'secondary'],
[highway = 'secondary_link'] {
Expand All @@ -2314,13 +2317,16 @@
[zoom >= 15] {
text-size: 10;
}
[zoom >= 17] {
text-size: 11;
}
}
[highway = 'tertiary'],
[highway = 'tertiary_link'] {
[zoom >= 15] {
[zoom >= 14] {
text-name: "[name]";
text-size: 9;
text-fill: #000;
text-fill: black;
text-spacing: 300;
text-clip: false;
text-placement: line;
Expand All @@ -2336,14 +2342,14 @@
[zoom >= 13] {
text-name: "[name]";
text-size: 9;
text-fill: #000;
text-fill: black;
text-spacing: 300;
text-clip: false;
text-placement: line;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-face-name: @book-fonts;
}
[zoom >= 16] {
[zoom >= 17] {
text-size: 11;
}
}
Expand All @@ -2353,10 +2359,11 @@
[zoom >= 15] {
text-name: "[name]";
text-size: 8;
text-fill: black;
text-spacing: 300;
text-clip: false;
text-placement: line;
text-halo-radius: 1;
text-halo-radius: 0;
text-face-name: @book-fonts;
}
[zoom >= 16] {
Expand All @@ -2373,9 +2380,11 @@
[zoom >= 16] {
text-name: "[name]";
text-size: 9;
text-fill: black;
text-spacing: 300;
text-clip: false;
text-placement: line;
text-halo-radius: 0;
text-face-name: @book-fonts;
}
[zoom >= 17] {
Expand All @@ -2388,9 +2397,11 @@
[zoom >= 15] {
text-name: "[name]";
text-size: 8;
text-fill: black;
text-spacing: 300;
text-clip: false;
text-placement: line;
text-halo-radius: 0;
text-face-name: @book-fonts;
}
[zoom >= 16] {
Expand Down Expand Up @@ -2444,6 +2455,7 @@
}
}

[highway = 'bridleway'],
[highway = 'footway'],
[highway = 'cycleway'],
[highway = 'path'],
Expand Down

0 comments on commit 4f33212

Please sign in to comment.