diff --git a/roads.mss b/roads.mss index 2684f37e71..1ad33243b6 100644 --- a/roads.mss +++ b/roads.mss @@ -286,6 +286,9 @@ @shield-font: @book-fonts; @shield-clip: false; +@major-highway-text-repeat-distance: 50; +@minor-highway-text-repeat-distance: 10; + @railway-text-repeat-distance: 200; #roads-casing, #bridges, #tunnels { @@ -2812,10 +2815,10 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-spacing: 750; text-clip: false; text-placement: line; - text-min-distance: 18; text-face-name: @book-fonts; text-halo-radius: @standard-halo-radius; text-halo-fill: @standard-halo-fill; + text-repeat-distance: @minor-highway-text-repeat-distance; } } } @@ -2835,6 +2838,7 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-clip: false; text-placement: line; text-face-name: @book-fonts; + text-repeat-distance: @major-highway-text-repeat-distance; [tunnel = 'no'] { text-halo-radius: @standard-halo-radius; [highway = 'motorway'] { text-halo-fill: @motorway-fill; } @@ -2867,6 +2871,7 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-face-name: @book-fonts; text-halo-radius: @standard-halo-radius; text-halo-fill: @secondary-fill; + text-repeat-distance: @major-highway-text-repeat-distance; } [zoom >= 14] { text-size: 9; @@ -2893,6 +2898,7 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-face-name: @book-fonts; text-halo-radius: @standard-halo-radius; text-halo-fill: @tertiary-fill; + text-repeat-distance: @major-highway-text-repeat-distance; } [zoom >= 17] { text-size: 11; @@ -2911,6 +2917,7 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-halo-radius: @standard-halo-radius; text-halo-fill: @standard-halo-fill; text-face-name: @book-fonts; + text-repeat-distance: @major-highway-text-repeat-distance; [zoom >= 17] { text-size: 11; @@ -2937,6 +2944,8 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-halo-radius: @standard-halo-radius; text-halo-fill: @residential-fill; text-face-name: @book-fonts; + text-repeat-distance: @minor-highway-text-repeat-distance; + [highway = 'unclassified'] { text-repeat-distance: @major-highway-text-repeat-distance;} } [zoom >= 16] { text-size: 9; @@ -2966,6 +2975,7 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ [highway = 'raceway'] { text-halo-fill: @raceway-fill; } [highway = 'service'] { text-halo-fill: @service-fill; } text-face-name: @book-fonts; + text-repeat-distance: @major-highway-text-repeat-distance; } [zoom >= 17] { text-size: 11; @@ -2984,9 +2994,13 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-clip: false; text-placement: line; text-halo-radius: @standard-halo-radius; - [highway = 'living_street'] { text-halo-fill: @living-street-fill; } + [highway = 'living_street'] { + text-halo-fill: @living-street-fill; + text-repeat-distance: @major-highway-text-repeat-distance; + } [highway = 'pedestrian'] { text-halo-fill: @pedestrian-fill; } text-face-name: @book-fonts; + text-repeat-distance: @minor-highway-text-repeat-distance; } [zoom >= 16] { text-size: 9; @@ -3026,6 +3040,7 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-face-name: @book-fonts; text-vertical-alignment: middle; text-dy: 5; + text-repeat-distance: @major-highway-text-repeat-distance; } [zoom >= 16] { text-size: 9; @@ -3054,6 +3069,8 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-face-name: @book-fonts; text-vertical-alignment: middle; text-dy: 7; + text-repeat-distance: @major-highway-text-repeat-distance; + [highway = 'steps'] { text-repeat-distance: @minor-highway-text-repeat-distance; } } [zoom >= 17] { text-size: 11;