Skip to content

Commit

Permalink
Added text-repeat-distance for highway names (#3318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Penegal authored and kocio-pl committed Nov 6, 2018
1 parent 9645dab commit 1419ef8
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions roads.mss
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,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 {
Expand Down Expand Up @@ -2891,10 +2894,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;
}
}
}
Expand All @@ -2914,6 +2917,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; }
Expand Down Expand Up @@ -2946,6 +2950,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;
Expand All @@ -2972,6 +2977,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;
Expand All @@ -2990,6 +2996,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;
Expand All @@ -3016,6 +3023,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;
Expand Down Expand Up @@ -3045,6 +3054,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;
Expand All @@ -3063,9 +3073,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;
Expand Down Expand Up @@ -3105,6 +3119,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;
Expand Down Expand Up @@ -3133,6 +3148,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;
Expand Down

0 comments on commit 1419ef8

Please sign in to comment.