Skip to content

Commit ee106bd

Browse files
authored
Styles: fix highway and major tunnel dashed strokes [#558] (#565)
1 parent 12e88c6 commit ee106bd

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

app/src/examples.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,12 @@
8989
"tags": ["earth"],
9090
"center": [-123.22, 48.111],
9191
"zoom": 7
92+
},
93+
{
94+
"name": "nyc-tunnels",
95+
"description": "Highway and major road tunnels should have dashed strokes",
96+
"tags": ["roads", "tunnels"],
97+
"center": [-73.9684, 40.747621],
98+
"zoom": 17
9299
}
93100
]

styles/src/base_layers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ export function nolabels_layers(
400400
"source-layer": "roads",
401401
filter: [
402402
"all",
403-
["!has", "is_tunnel"],
403+
["has", "is_tunnel"],
404404
["!has", "is_bridge"],
405405
["==", "kind", "major_road"],
406406
],
@@ -436,7 +436,7 @@ export function nolabels_layers(
436436
"source-layer": "roads",
437437
filter: [
438438
"all",
439-
["!has", "is_tunnel"],
439+
["has", "is_tunnel"],
440440
["!has", "is_bridge"],
441441
["==", "kind", "highway"],
442442
["!has", "is_link"],

0 commit comments

Comments
 (0)