Skip to content

Commit

Permalink
Programatically adjust f/e props
Browse files Browse the repository at this point in the history
Align manual adjustments Robert with script functionality
  • Loading branch information
EtienneKras committed Dec 13, 2023
1 parent 5e7008d commit ca70ae7
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"deltares:onclick": {},
"time": 2010,
"variables": "eapa",
"datetime": "2023-12-04T14:35:49.577351Z"
"datetime": "2023-12-13T11:00:58.960320Z"
},
"geometry": {
"type": "Polygon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
[
"get",
"time-2010"
"time-2040"
],
0,
"hsla(110, 90%, 80%, 0.25)",
Expand All @@ -27,7 +27,7 @@
"deltares:onclick": {},
"time": 2040,
"variables": "eapa",
"datetime": "2023-12-04T14:35:49.578339Z"
"datetime": "2023-12-13T11:00:58.965405Z"
},
"geometry": {
"type": "Polygon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"deltares:onclick": {},
"time": 2010,
"variables": "egdp",
"datetime": "2023-12-04T14:35:49.578339Z"
"datetime": "2023-12-13T11:00:58.965405Z"
},
"geometry": {
"type": "Polygon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
[
"get",
"time-2010"
"time-2040"
],
0,
"hsla(110, 90%, 80%, 0.25)",
Expand All @@ -27,7 +27,7 @@
"deltares:onclick": {},
"time": 2040,
"variables": "egdp",
"datetime": "2023-12-04T14:35:49.579331Z"
"datetime": "2023-12-13T11:00:58.966407Z"
},
"geometry": {
"type": "Polygon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"deltares:onclick": {},
"time": 2010,
"variables": "epsi",
"datetime": "2023-12-04T14:35:49.579331Z"
"datetime": "2023-12-13T11:00:58.967405Z"
},
"geometry": {
"type": "Polygon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
[
"get",
"time-2010"
"time-2040"
],
0,
"hsla(110, 90%, 80%, 0.25)",
Expand All @@ -27,7 +27,7 @@
"deltares:onclick": {},
"time": 2040,
"variables": "epsi",
"datetime": "2023-12-04T14:35:49.580326Z"
"datetime": "2023-12-13T11:00:58.967405Z"
},
"geometry": {
"type": "Polygon",
Expand Down
21 changes: 5 additions & 16 deletions STAC/data/scripts/09_subsidence_stacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
}
# hard-coded frontend properties
STATIONS = "locationId"
TYPE = "circle"
TYPE = "fill"
ON_CLICK = {}

# these are added at collection level (for graph plot in the dashboard)
Expand All @@ -93,27 +93,16 @@
# they also require input arguments
def get_paint_props(item_key: str):
return {
"circle-color": [
"fill-color": [
"interpolate",
["linear"],
["get", item_key],
0,
"hsl(110,90%,80%)",
"hsla(110, 90%, 80%, 0.25)",
1.5,
"hsla(55, 88%, 53%, 0.5)",
"hsla(55, 88%, 53%, 0.25)",
3.0,
"hsl(0, 90%, 70%)",
],
"circle-radius": [
"interpolate",
["linear"],
["zoom"],
0,
0.5,
1,
1,
5,
5,
"hsla(0, 90%, 70%, 0.25)",
],
}

Expand Down

0 comments on commit ca70ae7

Please sign in to comment.