Skip to content

Commit

Permalink
Merge pull request gravitystorm#1273 from math1985/halo
Browse files Browse the repository at this point in the history
Make halos transparent (alpha 0.6)
  • Loading branch information
pnorman committed Mar 9, 2015
2 parents 1efff3b + 52caf88 commit 2c019e9
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 4 deletions.
2 changes: 2 additions & 0 deletions admin.mss
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ overlapping borders correctly.
text-face-name: @book-fonts;
text-fill: @admin-boundaries;
text-halo-radius: 1.0;
text-halo-fill: rgba(255,255,255,0.6);
text-placement: line;
text-dy: -10;
}
Expand All @@ -130,6 +131,7 @@ overlapping borders correctly.
text-face-name: @book-fonts;
text-fill: green;
text-halo-radius: 1.0;
text-halo-fill: rgba(255,255,255,0.6);
text-placement: line;
text-dy: -10;
}
Expand Down
42 changes: 40 additions & 2 deletions amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@
[way_pixels > 48000] { text-size: 15; }
text-face-name: @oblique-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -672,6 +673,7 @@
text-dy: 11;
text-face-name: @bold-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
[feature = 'amenity_bar']{
Expand All @@ -692,6 +694,7 @@
text-dy: 13;
text-face-name: @bold-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
[feature = 'amenity_theatre'],
Expand All @@ -708,6 +711,7 @@
text-dy: 9;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
[access != ''][access != 'public'][access != 'yes'] {
Expand All @@ -722,6 +726,7 @@
text-dy: 11;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -733,6 +738,7 @@
text-dy: 11;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -744,6 +750,7 @@
text-dy: 12;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand Down Expand Up @@ -775,6 +782,7 @@
text-dy: 7;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -788,6 +796,7 @@
text-dy: 7;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -800,6 +809,7 @@
text-dy: 11;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -811,6 +821,7 @@
text-dy: 11;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -822,6 +833,7 @@
text-dy: 15;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -843,6 +855,7 @@
text-fill: @water-text;
text-face-name: @oblique-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -858,6 +871,7 @@
text-fill: @mud-text;
text-face-name: @landcover-face-name;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @landcover-wrap-width-size;
[way_pixels > 12000] {text-wrap-width: @landcover-wrap-width-size-big; }
[way_pixels > 48000] {text-wrap-width: @landcover-wrap-width-size-bigger; }
Expand All @@ -876,6 +890,7 @@
text-fill: @wetland-text;
text-face-name: @landcover-face-name;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @landcover-wrap-width-size;
[way_pixels > 12000] {text-wrap-width: @landcover-wrap-width-size-big; }
[way_pixels > 48000] {text-wrap-width: @landcover-wrap-width-size-bigger; }
Expand All @@ -893,6 +908,7 @@
text-fill: @marina-text;
text-face-name: @landcover-face-name;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @landcover-wrap-width-size;
[way_pixels > 12000] {text-wrap-width: @landcover-wrap-width-size-big; }
[way_pixels > 48000] {text-wrap-width: @landcover-wrap-width-size-bigger; }
Expand Down Expand Up @@ -960,6 +976,7 @@
text-fill: darken(@track, 40%);
text-face-name: @landcover-face-name;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @landcover-wrap-width-size;
[way_pixels > 12000] {text-wrap-width: @landcover-wrap-width-size-big; }
[way_pixels > 48000] {text-wrap-width: @landcover-wrap-width-size-bigger; }
Expand Down Expand Up @@ -1313,6 +1330,7 @@
text-fill: #6699cc;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -1323,6 +1341,7 @@
text-fill: #6699cc;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
text-dy: 6;
Expand All @@ -1335,6 +1354,7 @@
text-dy: 11;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -1356,6 +1376,7 @@
text-fill: black;
text-dy: 12;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
text-face-name: @book-fonts;
Expand All @@ -1372,6 +1393,7 @@
text-dy: 13;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
[feature = 'tourism_chalet'] {
Expand All @@ -1387,6 +1409,7 @@
text-dy: 10;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -1398,6 +1421,7 @@
text-dy: 10;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -1412,6 +1436,7 @@
text-dy: 11;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
[feature = 'highway_bus_stop'] {
Expand All @@ -1427,6 +1452,7 @@
text-dy: 15;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand Down Expand Up @@ -1457,6 +1483,7 @@
text-fill: #0066ff;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -1467,6 +1494,7 @@
text-fill: @marina-text;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
[zoom >= 17] {
Expand Down Expand Up @@ -1499,6 +1527,7 @@
text-fill: #734a08;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -1510,6 +1539,7 @@
text-dy: 12;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -1524,6 +1554,7 @@
text-fill: #660033;
text-face-name: @book-fonts;
text-halo-radius: 2;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @landcover-wrap-width-size;
[way_pixels > 12000] {text-wrap-width: @landcover-wrap-width-size-big; }
[way_pixels > 48000] {text-wrap-width: @landcover-wrap-width-size-bigger; }
Expand Down Expand Up @@ -1593,6 +1624,7 @@
text-dy: 16;
text-face-name: @book-fonts;
text-halo-radius: 2;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -1604,6 +1636,7 @@
text-dy: 12;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -1615,6 +1648,7 @@
text-dy: 10;
text-face-name: @book-fonts;
text-halo-radius: 2;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -1629,6 +1663,7 @@
text-fill: @health-color;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -1653,7 +1688,7 @@
text-fill: #939;
text-face-name: @book-fonts;
text-halo-radius: 1.5;
text-halo-fill: rgba(255, 255, 255, 0.8);
text-halo-fill: rgba(255, 255, 255, 0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand All @@ -1668,7 +1703,7 @@
text-fill: #939;
text-face-name: @book-fonts;
text-halo-radius: 1.5;
text-halo-fill: rgba(255, 255, 255, 0.8);
text-halo-fill: rgba(255, 255, 255, 0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand Down Expand Up @@ -1716,6 +1751,7 @@
text-fill: #aa66cc;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
Expand Down Expand Up @@ -1933,6 +1969,7 @@
text-dy: -10;
text-face-name: @bold-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-placement: interior;
text-wrap-width: 30;
}
Expand All @@ -1944,6 +1981,7 @@
text-dy: -10;
text-face-name: @oblique-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-placement: interior;
text-wrap-width: 30;
}
Expand Down
9 changes: 7 additions & 2 deletions roads.mss
Original file line number Diff line number Diff line change
Expand Up @@ -1967,6 +1967,7 @@ residential is rendered from z10 and is not included in osm_planet_roads. */
text-fill: black;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: 30;
text-min-distance: 2;
[zoom >= 14] {
Expand Down Expand Up @@ -2187,6 +2188,7 @@ residential is rendered from z10 and is not included in osm_planet_roads. */
text-face-name: @bold-fonts;
text-min-distance: 18;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-spacing: 750;
text-clip: false;
}
Expand All @@ -2204,6 +2206,7 @@ residential is rendered from z10 and is not included in osm_planet_roads. */
text-min-distance: 18;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
}
}
}
Expand Down Expand Up @@ -2285,6 +2288,7 @@ residential is rendered from z10 and is not included in osm_planet_roads. */
text-clip: false;
text-placement: line;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-face-name: @book-fonts;
text-opacity: 0.3;
}
Expand All @@ -2302,6 +2306,7 @@ residential is rendered from z10 and is not included in osm_planet_roads. */
text-clip: false;
text-placement: line;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-face-name: @book-fonts;
[zoom >= 17] {
text-size: 11;
Expand Down Expand Up @@ -2399,7 +2404,7 @@ residential is rendered from z10 and is not included in osm_planet_roads. */
text-fill: #222;
text-size: 8;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.8);
text-halo-fill: rgba(255,255,255,0.6);
text-spacing: 300;
text-clip: false;
text-placement: line;
Expand All @@ -2426,7 +2431,7 @@ residential is rendered from z10 and is not included in osm_planet_roads. */
text-fill: #222;
text-size: 9;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.8);
text-halo-fill: rgba(255,255,255,0.6);
text-spacing: 300;
text-clip: false;
text-placement: line;
Expand Down
Loading

0 comments on commit 2c019e9

Please sign in to comment.