Skip to content

Commit

Permalink
Filter to waterways specifically for certain canoe things
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Jul 24, 2024
1 parent 36beb40 commit b13605b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/mapController.js
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ function isSpecifiedExpressionForLens(lens, travelMode) {
[
"all",
specifiedAttributeExpression,
["!has", "highway"],
["has", "waterway"],
],
[
"all",
Expand Down Expand Up @@ -983,7 +983,7 @@ function onewayArrowsFilter(travelMode) {
[
"all",
filter,
["!has", "highway"],
["has", "waterway"],
],
[
"all",
Expand Down Expand Up @@ -1162,19 +1162,19 @@ function updateTrailLayers() {
showDisallowedPathsExpression,
["none", allowedAccessExpression],
specifiedExpression,
["!has", "highway"],
["has", "waterway"],
]);
setTrailsLayerFilter('unspecified-waterways', [
"all",
allowedAccessExpression,
["none", specifiedExpression],
["!has", "highway"],
["has", "waterway"],
]);
setTrailsLayerFilter('waterways', [
"all",
allowedAccessExpression,
specifiedExpression,
["!has", "highway"],
["has", "waterway"],
]);

map
Expand Down

0 comments on commit b13605b

Please sign in to comment.