Skip to content

Commit dc4e637

Browse files
committed
adding the animation icon
1 parent eafedd1 commit dc4e637

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/components/control-panel/control-panel.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
Tsunami as SwanIcon,
2323
Water as MaxElevationIcon,
2424
Waves as HIResMaxElevationIcon,
25+
LocalMovies as AnimationIcon
2526
} from '@mui/icons-material';
2627
import { getBrandingHandler, getNamespacedEnvParam, getPreferredTimeZone} from "@utils/map-utils";
2728
import { getDefaultInstanceName } from "@components/config";
@@ -34,6 +35,7 @@ const layerIcons = {
3435
swan_HS_max63: <SwanIcon />,
3536
maxinundepth63: <MaxInundationIcon />,
3637
maxele_level_downscaled_epsg4326: <HIResMaxElevationIcon />,
38+
ani : <AnimationIcon/>
3739
};
3840

3941
export const ControlPanel = () => {

src/context/map-context.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
BlurOn as WaterSurfaceIcon,
1010
Waves as HIResMaxElevationIcon,
1111
Flood as FloodIcon,
12+
LocalMovies as AnimationIcon
1213
} from '@mui/icons-material';
1314

1415
export const LayersContext = createContext({});
@@ -37,6 +38,9 @@ const layerTypes = {
3738
maxinundepth63: {
3839
icon: FloodIcon,
3940
},
41+
ani: {
42+
icon: AnimationIcon,
43+
},
4044
};
4145

4246
export const LayersProvider = ({ children }) => {
@@ -60,7 +64,7 @@ export const LayersProvider = ({ children }) => {
6064
const [showShareComment, setShowShareComment] = useState(true);
6165

6266
// used to show alerts
63-
const [alertMsg, setAlertMsg] = useState(null);
67+
const [alertMsg, setAlertMsg] = useState(null);
6468

6569
// state to capture the default startup instance name
6670
const [defaultInstanceName, setDefaultInstanceName] = useState(null);

0 commit comments

Comments
 (0)