Skip to content

Commit

Permalink
Revised text size for lakes
Browse files Browse the repository at this point in the history
This branch supersedes branch
https://github.com/Ircama/openstreetmap-carto/tree/topo-extension-zooms
specifically for the text size to be used for lakes (natural=water or landuse=reservoir/basin).

Related PR will replace
gravitystorm#2139
for the feature "Revised text size for lakes".
  • Loading branch information
Ircama committed Aug 17, 2016
1 parent 0169188 commit fa22211
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions water.mss
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,34 @@
[feature = 'landuse_basin'] {
[zoom >= 10][way_pixels > 3000],
[zoom >= 17] {
text-name: "[name]";
text-size: 12;
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;
water/text-name: "[name]";
water/text-size: 10;
[way_pixels >= 4000] {
water/text-size: 12;
}
[way_pixels >= 20000][zoom >= 10] {
water/text-size: 15;
}
[way_pixels >= 60000][zoom >= 11] {
water/text-size: 17;
}
[way_pixels >= 200000][zoom >= 12] {
water/text-size: 21;
}
[way_pixels >= 500000][zoom >= 13] {
water/text-size: 25;
}
[way_pixels >= 500000][zoom >= 15] {
water/text-size: 27;
}
water/text-fill: @water-text;
water/text-face-name: @oblique-fonts;
water/text-halo-radius: 1;
water/text-halo-fill: rgba(255,255,255,0.6);
water/text-wrap-width: @standard-wrap-width;
water/text-placement: interior;
water/text-placement-type: simple;
water/text-placements: "N,S,E,W,NE,SE,NW,SW,18,16,14,12,10,9,8";
}
}
}

0 comments on commit fa22211

Please sign in to comment.