From b13605b8d0c930f31ea6405763740a851516f303 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:17:20 -0400 Subject: [PATCH] Filter to waterways specifically for certain canoe things --- js/mapController.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/mapController.js b/js/mapController.js index 428a9ad..868f7cf 100644 --- a/js/mapController.js +++ b/js/mapController.js @@ -913,7 +913,7 @@ function isSpecifiedExpressionForLens(lens, travelMode) { [ "all", specifiedAttributeExpression, - ["!has", "highway"], + ["has", "waterway"], ], [ "all", @@ -983,7 +983,7 @@ function onewayArrowsFilter(travelMode) { [ "all", filter, - ["!has", "highway"], + ["has", "waterway"], ], [ "all", @@ -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