Skip to content

Commit

Permalink
Merge pull request #173 from HSLdevcom/AB#34221_fix_light_rail_crosso…
Browse files Browse the repository at this point in the history
…vers

AB#34221: Fix service:crossover styling on light_rail routes
  • Loading branch information
e-halinen authored Apr 23, 2024
2 parents 207a8de + 1252071 commit 97a22d3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
25 changes: 23 additions & 2 deletions style.json
Original file line number Diff line number Diff line change
Expand Up @@ -1301,10 +1301,31 @@
["==", "class", "transit"],
[
"all",
["!has", "service"],
[
"any",
["!has", "service"],
[
"all",
[
"==",
"service",
"crossover"
],
[
"==",
"subclass",
"light_rail"
]
]
],
["!=", "subclass", "tram"]
],
["!in", "brunnel", "tunnel", "bridge"]
[
"!in",
"brunnel",
"tunnel",
"bridge"
]
],
"paint": {
"line-color": "#bbb",
Expand Down
20 changes: 18 additions & 2 deletions style/hsl-map-style-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2108,8 +2108,24 @@
[
"all",
[
"!has",
"service"
"any",
[
"!has",
"service"
],
[
"all",
[
"==",
"service",
"crossover"
],
[
"==",
"subclass",
"light_rail"
]
]
],
[
"!=",
Expand Down

0 comments on commit 97a22d3

Please sign in to comment.