From a1e48ce1c2c65568492fb575e621452dcb6f3961 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Wed, 11 Dec 2024 22:34:35 -0500 Subject: [PATCH] Add color for tidal waterways (re: #91) --- js/mapController.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/mapController.js b/js/mapController.js index 08c6361..7c9d519 100644 --- a/js/mapController.js +++ b/js/mapController.js @@ -6,7 +6,8 @@ const colors = { ferry: "#009FBE", natural: "#005908", specified: "#007f79", - unspecified: "#8e00cc", + unspecified: "#c100cc", + tidal: "#0041e5", disallowedWater: "#a6b2c4", water: "#003b93", label: "#333", @@ -1157,6 +1158,12 @@ function updateTrailLayers() { pathsColors = lens === 'check_date' ? checkDateColors : lens === 'OSM_TIMESTAMP' ? editedDateColors : + lens === 'tidal' ? [ + "case", + ["any", ["==", ["get", "tidal"], "yes"], isImpliedExpressionForLens("tidal")], colors.tidal, + ["==", ["get", "tidal"], "no"], colors.specified, + colors.unspecified + ] : colors.specified; waterwaysColors = pathsColors;