Skip to content

Commit

Permalink
Merge pull request cyclosm#312 from Florimondable/motorway_ref
Browse files Browse the repository at this point in the history
Fix ref not rendered for trunk and motorway.
  • Loading branch information
Phyks committed Feb 23, 2020
2 parents a35a05b + 2a97ad6 commit d1c0903
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
21 changes: 11 additions & 10 deletions labels.mss
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,19 @@
/* ================================================================== */

#roads-text-ref-low-zoom[zoom < 13] {
[highway = 'motorway_trunk'][zoom >= 10],
[highway = 'motorway'][zoom >= 10],
[highway = 'trunk'][zoom >= 10],
[highway = 'primary'][zoom >= 11],
[highway = 'secondary'][zoom >= 12] {
text-name: "[refs]";
text-size: 7;
text-fill: @road_text;
text-spacing: 600;
text-clip: false;
text-placement: line;
text-face-name: @sans;
text-repeat-distance: @major-highway-text-repeat-distance;
text-halo-radius: @standard-halo-radius;
text-name: "[refs]";
text-size: 7;
text-fill: @road_text;
text-spacing: 600;
text-clip: false;
text-placement: line;
text-face-name: @sans;
text-repeat-distance: @major-highway-text-repeat-distance;
text-halo-radius: @standard-halo-radius;
}
}

Expand Down
10 changes: 2 additions & 8 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -2216,10 +2216,7 @@ Layer:
(
SELECT
way,
CASE
WHEN highway IN ('motorway', 'trunk') THEN 'motorway_trunk'
ELSE highway
END AS highway,
highway,
height,
width,
refs
Expand Down Expand Up @@ -2273,10 +2270,7 @@ Layer:
(
SELECT
way,
CASE
WHEN highway IN ('motorway', 'trunk') THEN 'motorway_trunk'
ELSE highway
END AS highway,
highway,
height,
width,
refs
Expand Down

0 comments on commit d1c0903

Please sign in to comment.