From 4918546432f1924382353227c0d3246749b7619a Mon Sep 17 00:00:00 2001 From: Penegal Date: Mon, 23 Jul 2018 15:36:34 +0200 Subject: [PATCH] Added text-repeat-distance for all waterways (part of #3295) --- water.mss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/water.mss b/water.mss index c157473163..ff03a547b2 100644 --- a/water.mss +++ b/water.mss @@ -2,6 +2,8 @@ @glacier: #ddecec; @glacier-line: #9cf; +@waterway-text-repeat-distance: 200; + #water-areas { [natural = 'glacier']::natural { [zoom >= 8] { @@ -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] { @@ -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] { @@ -291,6 +294,7 @@ text-placement: line; text-vertical-alignment: middle; text-dy: 8; + text-repeat-distance: @waterway-text-repeat-distance; } [waterway = 'drain'], @@ -306,6 +310,7 @@ text-placement: line; text-vertical-alignment: middle; text-dy: 8; + text-repeat-distance: @waterway-text-repeat-distance; } } }