@@ -14,6 +14,7 @@ import IconButton from '@mui/material/IconButton';
14
14
import Container from '@mui/material/Container' ;
15
15
import MenuIcon from '@mui/icons-material/Menu' ;
16
16
import ChevronLeftIcon from '@mui/icons-material/ChevronLeft' ;
17
+ import Visibility from '@mui/icons-material/Visibility' ;
17
18
import { homeListItems } from '../ListItems' ;
18
19
import MapSelectionRadio , { MapType } from './MapSelectionRadio' ;
19
20
import DisplaySelection from './DisplaySelection' ;
@@ -25,6 +26,7 @@ import LineChart from './LineChart';
25
26
import axios from 'axios' ;
26
27
import { API_URL } from '../utils/config' ;
27
28
import { UNITS , MAP_TYPE_CONVERT } from './MeasurementMap' ;
29
+ import { solveDisplayOptions } from './DisplaySelection' ;
28
30
29
31
// import { setOptions } from 'leaflet';
30
32
@@ -317,7 +319,9 @@ export default function Vis() {
317
319
</ Card >
318
320
</ Fade >
319
321
</ Box >
322
+
320
323
< Box
324
+ // new box
321
325
component = 'main'
322
326
sx = { {
323
327
backgroundColor : 'transparent' ,
@@ -331,6 +335,31 @@ export default function Vis() {
331
335
: 0 ) ,
332
336
zIndex : '4' ,
333
337
} }
338
+ >
339
+ < IconButton
340
+ onClick = { ( ) => {
341
+ setDisplayOptions (
342
+ solveDisplayOptions ( displayOptions , 'displayGraph' , true ) ,
343
+ ) ;
344
+ } }
345
+ >
346
+ < Visibility > </ Visibility >
347
+ </ IconButton >
348
+ </ Box >
349
+ < Box
350
+ component = 'main'
351
+ sx = { {
352
+ backgroundColor : 'transparent' ,
353
+ overflow : 'none' ,
354
+ position : 'absolute' ,
355
+ right : '8px' ,
356
+ bottom :
357
+ 20 +
358
+ ( displayValue ( displayOptions , 'displayGraph' )
359
+ ? chartHeight + 10
360
+ : + 50 ) ,
361
+ zIndex : '5' ,
362
+ } }
334
363
>
335
364
< Fade
336
365
mountOnEnter
0 commit comments