Skip to content

Commit

Permalink
fixes for label density
Browse files Browse the repository at this point in the history
  • Loading branch information
makella committed Aug 12, 2016
1 parent 3be20d2 commit 768664e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
20 changes: 14 additions & 6 deletions styles/country_city_labels_lowercase.mss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
// Transition from townpoints to plain text at z8

[zoom=8][scalerank<=7],
[zoom=9][scalerank<=9],
[zoom=9][scalerank<=8],
[zoom=10][scalerank<=9],
[zoom=11][scalerank<=10],
[zoom=12][scalerank<=10],
Expand All @@ -81,14 +81,18 @@
text-face-name: "Open Sans Regular","DejaVu Sans Bold","unifont Medium";
//text-transform: uppercase;

[zoom<=10]{text-wrap-width: 150;}
[zoom>=11][zoom<=12]{text-wrap-width: 200;}
[zoom<=11]{text-wrap-width: 100;}
[zoom=12]{text-wrap-width: 120;}
text-wrap-before: true;
text-character-spacing: 1;

text-halo-radius: @labels_highzoom_halo_radius;
text-halo-fill: @labels_highzoom_halo_fill;
text-fill: @labels_highzoom_class1_text_fill;
text-fill: #adadad;//@labels_highzoom_class1_text_fill;

text-min-distance: 10;
[zoom=10]{text-min-distance: 20;}
[zoom>=11]{text-min-distance: 28;}


[zoom>=11]{text-size: 10;}
Expand All @@ -97,13 +101,13 @@
[zoom=8][scalerank<=6],
[zoom=9][scalerank<=7],
[zoom=10][scalerank<=7] {
text-size: @labels_highzoom_class1_text_size;
text-size: 11;
text-fill: @labels_highzoom_class1_text_fill;
text-line-spacing: -1;
}
[zoom=11][scalerank<=7],
[zoom=12][scalerank<=7] {
text-size: 14;
text-size: 12;
text-fill: @labels_highzoom_class1_text_fill;
}

Expand All @@ -113,17 +117,21 @@
[zoom=10][scalerank<=5] {
text-size: 16;
text-fill: @labels_highzoom_class2_text_fill;
text-wrap-width: 100;
}
[zoom=11][scalerank<=5],
[zoom=12][scalerank<=5]
{
text-size: 18;
text-fill: @label_foreground_fill;
text-wrap-width: 100;
}

// class 0 (default)
text-size: @labels_highzoom_class1_text_size_default;



// At this zoom cities disappear, and it's only neighborhoods
[zoom>=13] {
text-size: 10;
Expand Down
4 changes: 3 additions & 1 deletion styles/park_labels_lowercase.mss
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
[zoom=15][area>50000],
[zoom=16][area>10000],
[zoom>=17] {
text-size: 12;
text-size: 11;
text-name: "[name]";
text-fill: @label_park_fill;
text-halo-radius: @label_park_halo_radius;
text-halo-fill: @label_park_halo_fill;
text-face-name: "Open Sans Italic","DejaVu Sans Bold","unifont Medium";
text-character-spacing: 1.0;
text-wrap-width: 150;
[zoom>=11]{text-wrap-width: 120;}
[zoom>=15]{text-wrap-width: 100;}
text-wrap-before: true;
text-ratio: 0.5;
[name=~".* Watershed"],
Expand Down

0 comments on commit 768664e

Please sign in to comment.