@@ -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,6 +319,33 @@ export default function Vis() {
317
319
</ Card >
318
320
</ Fade >
319
321
</ Box >
322
+
323
+ < Box
324
+ // new box
325
+ component = 'main'
326
+ sx = { {
327
+ backgroundColor : 'transparent' ,
328
+ overflow : 'none' ,
329
+ position : 'absolute' ,
330
+ right : '8px' ,
331
+ bottom :
332
+ 20 +
333
+ ( displayValue ( displayOptions , 'displayGraph' )
334
+ ? chartHeight + 10
335
+ : 0 ) ,
336
+ zIndex : '4' ,
337
+ } } >
338
+ < IconButton
339
+ onClick = { ( ) => {
340
+ setDisplayOptions (
341
+ solveDisplayOptions ( displayOptions , 'displayGraph' , true ) ,
342
+ ) ;
343
+ } }
344
+ >
345
+ < Visibility >
346
+ </ Visibility >
347
+ </ IconButton >
348
+ </ Box >
320
349
< Box
321
350
component = 'main'
322
351
sx = { {
@@ -328,8 +357,8 @@ export default function Vis() {
328
357
20 +
329
358
( displayValue ( displayOptions , 'displayGraph' )
330
359
? chartHeight + 10
331
- : 0 ) ,
332
- zIndex : '4 ' ,
360
+ : + 50 ) ,
361
+ zIndex : '5 ' ,
333
362
} }
334
363
>
335
364
< Fade
@@ -348,6 +377,7 @@ export default function Vis() {
348
377
</ Typography >
349
378
</ Card >
350
379
</ Fade >
380
+
351
381
</ Box >
352
382
</ ThemeProvider >
353
383
) ;
0 commit comments