Skip to content

Commit 65d7554

Browse files
committed
catching other grade-separated roads with a trick
1 parent 08bb6f1 commit 65d7554

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎scene.js‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,18 @@
4141
visible: false
4242
},
4343
major_road: {
44+
filter: {
45+
kind: "major_road",
46+
not: function() {
47+
return feature.kind_detail === "primary" && feature.shield_text;
48+
},
49+
},
4450
trunk_primary: {
45-
filter: { kind_detail: ["primary"] }
51+
// this leaves *most* crossable primary roads, trying to exclude
52+
// roads with shield text aka highway-like roads?
53+
filter: function() {
54+
return feature.kind_detail === "primary" && !feature.shield_text;
55+
}
4656
}
4757
}
4858
},

0 commit comments

Comments
 (0)