Skip to content

Commit

Permalink
Add color for tidal waterways (re: #91)
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Dec 12, 2024
1 parent 9f8ad9a commit a1e48ce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion js/mapController.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const colors = {
ferry: "#009FBE",
natural: "#005908",
specified: "#007f79",
unspecified: "#8e00cc",
unspecified: "#c100cc",
tidal: "#0041e5",
disallowedWater: "#a6b2c4",
water: "#003b93",
label: "#333",
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a1e48ce

Please sign in to comment.