diff --git a/demo/components/parameter-controls.js b/demo/components/parameter-controls.js
index 0a1ef8d..b7c307e 100644
--- a/demo/components/parameter-controls.js
+++ b/demo/components/parameter-controls.js
@@ -15,7 +15,7 @@ const sx = {
const CLIM_RANGES = {
sst: { max: 30, min: -20 },
- ice: { max: 300, min: 0 },
+ ice: { max: 1, min: 0 },
}
const DEFAULT_COLORMAPS = {
@@ -24,22 +24,23 @@ const DEFAULT_COLORMAPS = {
}
const ParameterControls = ({ getters, setters }) => {
- const { display, debug, opacity, clim, month, band, colormapName } = getters
+ const { display, debug, opacity, clim, month, variable, colormapName } =
+ getters
const {
setDisplay,
setDebug,
setOpacity,
setClim,
setMonth,
- setBand,
+ setVariable,
setColormapName,
} = setters
- const handleBandChange = useCallback((e) => {
- const band = e.target.value
- setBand(band)
- setClim([CLIM_RANGES[band].min, CLIM_RANGES[band].max])
- setColormapName(DEFAULT_COLORMAPS[band])
+ const handleVariableChange = useCallback((e) => {
+ const variable = e.target.value
+ setVariable(variable)
+ setClim([CLIM_RANGES[variable].min, CLIM_RANGES[variable].max])
+ setColormapName(DEFAULT_COLORMAPS[variable])
})
return (
@@ -97,8 +98,8 @@ const ParameterControls = ({ getters, setters }) => {
Minimum
{
Maximum
{
{month.toFixed(0)}
- Band
+ Variable