Skip to content

Commit

Permalink
Merge pull request #5 from digitalearthpacific/add-dashes-to-uncertai…
Browse files Browse the repository at this point in the history
…n-lines

Add dashes to uncertain lines
  • Loading branch information
alexgleith authored Aug 1, 2024
2 parents 0847d8f + a3b8715 commit 406022b
Showing 1 changed file with 50 additions and 14 deletions.
64 changes: 50 additions & 14 deletions styles.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
"maxzoom": 22,
"source": "coastlines",
"source-layer": "shorelines_annual",
"filter": [
"all",
[
"==",
"certainty",
"good"
]
],
"paint": {
"line-color": [
"interpolate",
Expand All @@ -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
]
}
},
Expand Down

0 comments on commit 406022b

Please sign in to comment.