Skip to content

Commit

Permalink
Merge pull request #1210 from math1985/placenames-halo
Browse files Browse the repository at this point in the history
Add transparency to halo placename labels
  • Loading branch information
mkoniecz committed Jan 12, 2015
2 parents cea9263 + 70c6206 commit c11c5c3
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 c11c5c3

Please sign in to comment.