Skip to content

Commit

Permalink
Add transparency to halo placename labels
Browse files Browse the repository at this point in the history
This looks prettier, and without compromising legibility as far as I see.
  • Loading branch information
matthijsmelissen committed Jan 8, 2015
1 parent a67327d commit 70c6206
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions placenames.mss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
text-fill: @placenames;
text-face-name: @book-fonts;
text-halo-radius: 1.5;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: 25;
text-min-distance: 10;
[zoom >= 6] {
Expand All @@ -66,6 +67,7 @@
text-fill: @placenames;
text-face-name: @book-fonts;
text-halo-radius: 1.5;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: 25;
text-min-distance: 10;
[zoom >= 9] {
Expand All @@ -88,6 +90,7 @@
text-fill: @placenames;
text-face-name: @book-fonts;
text-halo-radius: 1.5;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: 50;
text-min-distance: 10;
}
Expand All @@ -99,6 +102,7 @@
text-size: 15;
text-wrap-width: 90;
text-fill: @placenames-light;
text-halo-fill: white;
}
}
}
Expand All @@ -110,12 +114,14 @@
text-fill: @placenames;
text-face-name: @book-fonts;
text-halo-radius: 1.5;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: 70;
text-min-distance: 10;
[zoom >= 14] {
text-size: 14;
text-wrap-width: 90;
text-fill: @placenames-light;
text-halo-fill: white;
}
}
}
Expand All @@ -128,11 +134,13 @@
text-fill: @placenames;
text-face-name: @book-fonts;
text-halo-radius: 1.5;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: 50;
text-min-distance: 10;
[zoom >= 15] {
text-size: 13;
text-fill: @placenames-light;
text-halo-fill: white;
}
}
}
Expand All @@ -150,13 +158,15 @@
text-fill: @placenames;
text-face-name: @book-fonts;
text-halo-radius: 1.5;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: 50;
text-min-distance: 10;
}
[zoom >= 16] {
text-size: 12;
text-wrap-width: 70;
text-fill: @placenames-light;
text-halo-fill: white;
}
}
}

0 comments on commit 70c6206

Please sign in to comment.