diff --git a/styles.json b/styles.json index 4c6c583..cc02cd9 100644 --- a/styles.json +++ b/styles.json @@ -16,6 +16,14 @@ "maxzoom": 22, "source": "coastlines", "source-layer": "shorelines_annual", + "filter": [ + "all", + [ + "==", + "certainty", + "good" + ] + ], "paint": { "line-color": [ "interpolate", @@ -39,25 +47,53 @@ 2023, "#fcffa4" ], - "line-width": [ - "match", + "line-width": 2.5, + "line-opacity": 1 + } + }, + { + "id": "Annual shorelines (uncertain)", + "type": "line", + "minzoom": 13, + "maxzoom": 22, + "source": "coastlines", + "source-layer": "shorelines_annual", + "filter": [ + "all", + [ + "!=", + "certainty", + "good" + ] + ], + "paint": { + "line-color": [ + "interpolate", [ - "get", - "certainty" + "linear" ], - "good", - 2.5, - 0.85 - ], - "line-opacity": [ - "match", [ "get", - "certainty" + "year" ], - "good", - 1, - 0.65 + 1999, + "#000004", + 2003, + "#2f0a5b", + 2007, + "#801f6c", + 2012, + "#d34743", + 2017, + "#fb9d07", + 2023, + "#fcffa4" + ], + "line-width": 2.0, + "line-opacity": 0.8, + "line-dasharray": [ + 4, + 4 ] } },