Skip to content

Commit

Permalink
Merge pull request #925 from dschep/no-path-track-oneway-arrows
Browse files Browse the repository at this point in the history
Don't render one-way arrows on highway features that aren't rendered
  • Loading branch information
ZeLonewolf authored Sep 19, 2023
2 parents 6510713 + 07df658 commit de40a62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/layer/oneway.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand All @@ -87,5 +89,6 @@ export const bridge = {
["==", ["get", "oneway"], 1],
["!=", ["get", "ramp"], 1],
["==", ["get", "brunnel"], "bridge"],
["!", ["in", ["get", "class"], ["literal", ["path", "track"]]]],
],
};

0 comments on commit de40a62

Please sign in to comment.