From e0519596901655838f2e72a5ed57628069295a63 Mon Sep 17 00:00:00 2001 From: Daniel Schep Date: Sun, 17 Sep 2023 12:42:35 -0400 Subject: [PATCH] Don't render one-way arrows on highway features that aren't rendered --- src/layer/oneway.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/layer/oneway.js b/src/layer/oneway.js index 47253b9c6..e8f50eb06 100644 --- a/src/layer/oneway.js +++ b/src/layer/oneway.js @@ -10,6 +10,7 @@ export const surface = { ["==", ["get", "oneway"], 1], ["!=", ["get", "ramp"], 1], ["!", ["in", ["get", "brunnel"], ["literal", ["bridge", "tunnel"]]]], + ["!", ["in", ["get", "class"], ["literal", ["path", "track"]]]], ], source: "openmaptiles", "source-layer": "transportation", @@ -73,6 +74,7 @@ export const tunnel = { ["==", ["get", "oneway"], 1], ["!=", ["get", "ramp"], 1], ["==", ["get", "brunnel"], "tunnel"], + ["!", ["in", ["get", "class"], ["literal", ["path", "track"]]]], ], paint: { "icon-opacity": 0.2, @@ -87,5 +89,6 @@ export const bridge = { ["==", ["get", "oneway"], 1], ["!=", ["get", "ramp"], 1], ["==", ["get", "brunnel"], "bridge"], + ["!", ["in", ["get", "class"], ["literal", ["path", "track"]]]], ], };