Skip to content

Commit

Permalink
put uncertain on bottom, and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jessjaco committed Aug 22, 2024
1 parent b8fee19 commit b3e789c
Showing 1 changed file with 30 additions and 150 deletions.
180 changes: 30 additions & 150 deletions styles.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,18 @@
},
"layers": [
{
"id": "Annual shorelines",
"id": "Annual shorelines (uncertain)",
"type": "line",
"minzoom": 13,
"maxzoom": 22,
"source": "coastlines",
"source-layer": "shorelines_annual",
"filter": [
"all",
[
"==",
"certainty",
"good"
]
],
"filter": ["all", ["!=", "certainty", "good"]],
"paint": {
"line-color": [
"interpolate",
[
"linear"
],
[
"get",
"year"
],
["linear"],
["get", "year"],
1999,
"#000004",
2003,
Expand All @@ -47,35 +35,24 @@
2023,
"#fcffa4"
],
"line-width": 2.5,
"line-opacity": 1
"line-width": 2.0,
"line-opacity": 0.8,
"line-dasharray": [4, 4]
}
},
{
"id": "Annual shorelines (uncertain)",
"id": "Annual shorelines",
"type": "line",
"minzoom": 13,
"maxzoom": 22,
"source": "coastlines",
"source-layer": "shorelines_annual",
"filter": [
"all",
[
"!=",
"certainty",
"good"
]
],
"filter": ["all", ["==", "certainty", "good"]],
"paint": {
"line-color": [
"interpolate",
[
"linear"
],
[
"get",
"year"
],
["linear"],
["get", "year"],
1999,
"#000004",
2003,
Expand All @@ -89,12 +66,8 @@
2023,
"#fcffa4"
],
"line-width": 2.0,
"line-opacity": 0.8,
"line-dasharray": [
4,
4
]
"line-width": 2.5,
"line-opacity": 1
}
},
{
Expand Down Expand Up @@ -122,26 +95,11 @@
"maxzoom": 13,
"source": "coastlines",
"source-layer": "rates_of_change",
"filter": [
"all",
[
"<=",
"sig_time",
0.01
],
[
"==",
"certainty",
"good"
]
],
"filter": ["all", ["<=", "sig_time", 0.01], ["==", "certainty", "good"]],
"paint": {
"circle-color": [
"step",
[
"get",
"rate_time"
],
["get", "rate_time"],
"#ca0020",
-5,
"#da3c43",
Expand Down Expand Up @@ -170,10 +128,7 @@
],
"circle-radius": [
"step",
[
"get",
"rate_time"
],
["get", "rate_time"],
8,
-5,
7,
Expand Down Expand Up @@ -209,28 +164,13 @@
"maxzoom": 13,
"source": "coastlines",
"source-layer": "rates_of_change",
"filter": [
"all",
[
"<=",
"sig_time",
0.01
],
[
"==",
"certainty",
"good"
]
],
"filter": ["all", ["<=", "sig_time", 0.01], ["==", "certainty", "good"]],
"layout": {
"text-field": [
"concat",
[
"number-format",
[
"get",
"rate_time"
],
["get", "rate_time"],
{
"min-fraction-digits": 1,
"max-fraction-digits": 1
Expand All @@ -239,14 +179,7 @@
"m, (±",
[
"number-format",
[
"*",
[
"get",
"se_time"
],
1.96
],
["*", ["get", "se_time"], 1.96],
{
"min-fraction-digits": 1,
"max-fraction-digits": 1
Expand All @@ -270,26 +203,11 @@
"maxzoom": 10,
"source": "coastlines",
"source-layer": "hotspots_zoom_3",
"filter": [
"all",
[
"<=",
"sig_time",
0.01
],
[
"==",
"certainty",
"good"
]
],
"filter": ["all", ["<=", "sig_time", 0.01], ["==", "certainty", "good"]],
"paint": {
"circle-color": [
"step",
[
"get",
"rate_time"
],
["get", "rate_time"],
"#ca0020",
-5,
"#da3c43",
Expand Down Expand Up @@ -318,10 +236,7 @@
],
"circle-radius": [
"step",
[
"get",
"rate_time"
],
["get", "rate_time"],
8,
-5,
7,
Expand Down Expand Up @@ -357,26 +272,11 @@
"maxzoom": 7,
"source": "coastlines",
"source-layer": "hotspots_zoom_2",
"filter": [
"all",
[
"<=",
"sig_time",
0.01
],
[
"==",
"certainty",
"good"
]
],
"filter": ["all", ["<=", "sig_time", 0.01], ["==", "certainty", "good"]],
"paint": {
"circle-color": [
"step",
[
"get",
"rate_time"
],
["get", "rate_time"],
"#ca0020",
-5,
"#da3c43",
Expand Down Expand Up @@ -405,10 +305,7 @@
],
"circle-radius": [
"step",
[
"get",
"rate_time"
],
["get", "rate_time"],
8,
-5,
7,
Expand Down Expand Up @@ -444,26 +341,11 @@
"maxzoom": 4,
"source": "coastlines",
"source-layer": "hotspots_zoom_1",
"filter": [
"all",
[
"<=",
"sig_time",
0.01
],
[
"==",
"certainty",
"good"
]
],
"filter": ["all", ["<=", "sig_time", 0.01], ["==", "certainty", "good"]],
"paint": {
"circle-color": [
"step",
[
"get",
"rate_time"
],
["get", "rate_time"],
"#ca0020",
-5,
"#da3c43",
Expand Down Expand Up @@ -492,10 +374,7 @@
],
"circle-radius": [
"step",
[
"get",
"rate_time"
],
["get", "rate_time"],
8,
-5,
7,
Expand Down Expand Up @@ -525,4 +404,5 @@
}
}
]
}
}

0 comments on commit b3e789c

Please sign in to comment.