diff --git a/roads.mss b/roads.mss index b61fdc0ccc..24314c3923 100644 --- a/roads.mss +++ b/roads.mss @@ -272,6 +272,8 @@ @track-oneway-arrow-color: darken(@track-fill, 15%); @bridleway-oneway-arrow-color: darken(@track-fill, 10%); +@text-repeat-distance: 50; + // Shield’s line wrap is based on OpenStreetMap data and not on line-wrap-width, // but lines are typically rather short, so we use narrow line spacing. @shield-size: 10; @@ -281,7 +283,8 @@ @shield-size-z18: 12; @shield-line-spacing-z18: -1.80; // -0.15 em @shield-spacing: 760; -@shield-min-distance: 40; +@shield-repeat-distance: 400; +@shield-margin: 40; @shield-font: @book-fonts; @shield-clip: false; @@ -2665,7 +2668,8 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ shield-line-spacing: @shield-line-spacing; shield-placement: line; shield-spacing: @shield-spacing; - shield-min-distance: @shield-min-distance; + shield-repeat-distance: @shield-repeat-distance; + shield-margin: @shield-margin; shield-face-name: @shield-font; shield-clip: @shield-clip; @@ -2713,7 +2717,8 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ shield-placement: line; shield-spacing: @shield-spacing; - shield-min-distance: @shield-min-distance; + shield-repeat-distance: @shield-repeat-distance; + shield-margin: @shield-margin; shield-face-name: @shield-font; shield-clip: @shield-clip; @@ -2830,6 +2835,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: @text-repeat-distance; [tunnel = 'no'] { text-halo-radius: @standard-halo-radius; [highway = 'motorway'] { text-halo-fill: @motorway-fill; } @@ -2862,6 +2868,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: @text-repeat-distance; } [zoom >= 14] { text-size: 9; @@ -2888,6 +2895,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: @text-repeat-distance; } [zoom >= 17] { text-size: 11; @@ -2906,6 +2914,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: @text-repeat-distance; [zoom >= 17] { text-size: 11; @@ -2961,6 +2970,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: @text-repeat-distance; } [zoom >= 17] { text-size: 11; @@ -3021,6 +3031,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: @text-repeat-distance; } [zoom >= 16] { text-size: 9; @@ -3049,6 +3060,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: 7; + text-repeat-distance: @text-repeat-distance; } [zoom >= 17] { text-size: 11; @@ -3173,10 +3185,10 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-spacing: 900; 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: @text-repeat-distance; } [zoom >= 19] { text-size: 11; @@ -3195,10 +3207,10 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-spacing: 300; 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: @text-repeat-distance; } [zoom >= 13] { text-dy: 6; @@ -3224,10 +3236,10 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-spacing: 300; 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: @text-repeat-distance; } [zoom >= 17] { text-spacing: 600; @@ -3254,10 +3266,10 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ text-spacing: 900; 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: @text-repeat-distance; } [zoom >= 19] { text-size: 11; diff --git a/water.mss b/water.mss index c157473163..4cdfd56b7e 100644 --- a/water.mss +++ b/water.mss @@ -2,6 +2,8 @@ @glacier: #ddecec; @glacier-line: #9cf; +@text-repeat-distance: 600; + #water-areas { [natural = 'glacier']::natural { [zoom >= 8] { @@ -266,6 +268,7 @@ text-halo-fill: @standard-halo-fill; text-spacing: 400; text-placement: line; + text-repeat-distance: @text-repeat-distance; [zoom >= 14] { text-size: 12; } [int_tunnel = 'yes'] { text-min-distance: 200; } } @@ -278,6 +281,7 @@ text-halo-radius: @standard-halo-radius; text-halo-fill: @standard-halo-fill; text-placement: line; + text-repeat-distance: @text-repeat-distance; } [waterway = 'stream'][zoom >= 15] { @@ -288,6 +292,7 @@ text-halo-radius: @standard-halo-radius; text-halo-fill: @standard-halo-fill; text-spacing: 600; + text-repeat-distance: @text-repeat-distance; text-placement: line; text-vertical-alignment: middle; text-dy: 8; @@ -303,6 +308,7 @@ text-halo-radius: @standard-halo-radius; text-halo-fill: @standard-halo-fill; text-spacing: 600; + text-repeat-distance: @text-repeat-distance; text-placement: line; text-vertical-alignment: middle; text-dy: 8;