Skip to content

Commit

Permalink
Added text-repeat-distance for all waterways (part of #3295) (#3317)
Browse files Browse the repository at this point in the history
  • Loading branch information
Penegal authored and kocio-pl committed Jul 27, 2018
1 parent c3637af commit 14e9349
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion water.mss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
@glacier: #ddecec;
@glacier-line: #9cf;

@waterway-text-repeat-distance: 200;

#water-areas {
[natural = 'glacier']::natural {
[zoom >= 8] {
Expand Down Expand Up @@ -266,8 +268,8 @@
text-halo-fill: @standard-halo-fill;
text-spacing: 400;
text-placement: line;
text-repeat-distance: @waterway-text-repeat-distance;
[zoom >= 14] { text-size: 12; }
[int_tunnel = 'yes'] { text-min-distance: 200; }
}

[waterway = 'canal'][zoom >= 13] {
Expand All @@ -278,6 +280,7 @@
text-halo-radius: @standard-halo-radius;
text-halo-fill: @standard-halo-fill;
text-placement: line;
text-repeat-distance: @waterway-text-repeat-distance;
}

[waterway = 'stream'][zoom >= 15] {
Expand All @@ -291,6 +294,7 @@
text-placement: line;
text-vertical-alignment: middle;
text-dy: 8;
text-repeat-distance: @waterway-text-repeat-distance;
}

[waterway = 'drain'],
Expand All @@ -306,6 +310,7 @@
text-placement: line;
text-vertical-alignment: middle;
text-dy: 8;
text-repeat-distance: @waterway-text-repeat-distance;
}
}
}
Expand Down

0 comments on commit 14e9349

Please sign in to comment.