Skip to content

Commit

Permalink
refactor: 🎨 move the dashing outside of the gaps fill layer
Browse files Browse the repository at this point in the history
  • Loading branch information
tjur0 committed Oct 20, 2022
1 parent 5b65f08 commit ff83a18
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions style/tourism.mss
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,22 @@
line-width: 1.25;
line-color: @track-fill;
line-join: round;
line-dasharray: 2.5,0.5;

[tunnel = 'yes'] {
line-color: lighten(@track-fill, 5%);
}
[zoom >= 17] {
line-width: 2;
line-dasharray: 4,0.8;
}
[zoom >= 18] {
line-width: 3;
line-dasharray: 6,1.2;
}
[zoom >= 19] {
line-width: 4;
line-dasharray: 8,1.6;
}
[zoom >= 20] {
line-width: 6;
line-dasharray: 12,2.4;
}
[zoom >= 17] { line-width: 2; }
[zoom >= 18] { line-width: 3; }
[zoom >= 19] { line-width: 4; }
[zoom >= 20] { line-width: 6; }
}
}
}

#roller-coaster::fill[zoom >= 16] {
line-dasharray: 2.5,0.5;
[zoom >= 17] { line-dasharray: 4,0.8; }
[zoom >= 18] { line-dasharray: 6,1.2; }
[zoom >= 19] { line-dasharray: 8,1.6; }
[zoom >= 20] { line-dasharray: 12,2.4; }
}

0 comments on commit ff83a18

Please sign in to comment.