diff options
Diffstat (limited to 'modern/src/other')
-rw-r--r-- | modern/src/other/EventPage.js | 6 | ||||
-rw-r--r-- | modern/src/other/GeofencesPage.js | 6 | ||||
-rw-r--r-- | modern/src/other/ReplayPage.js | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/modern/src/other/EventPage.js b/modern/src/other/EventPage.js index cbe4a0fb..f84e1e5e 100644 --- a/modern/src/other/EventPage.js +++ b/modern/src/other/EventPage.js @@ -8,7 +8,7 @@ import ArrowBackIcon from '@mui/icons-material/ArrowBack'; import { useNavigate, useParams } from 'react-router-dom'; import { useEffectAsync } from '../reactHelper'; import { useTranslation } from '../common/components/LocalizationProvider'; -import Map from '../map/core/Map'; +import MapView from '../map/core/MapView'; import MapPositions from '../map/MapPositions'; const useStyles = makeStyles(() => ({ @@ -68,9 +68,9 @@ const EventPage = () => { </Toolbar> </AppBar> <div className={classes.mapContainer}> - <Map> + <MapView> {position && <MapPositions positions={[position]} />} - </Map> + </MapView> </div> </div> ); diff --git a/modern/src/other/GeofencesPage.js b/modern/src/other/GeofencesPage.js index 6706ec98..fce15a39 100644 --- a/modern/src/other/GeofencesPage.js +++ b/modern/src/other/GeofencesPage.js @@ -7,7 +7,7 @@ import { useTheme } from '@mui/material/styles'; import Drawer from '@mui/material/Drawer'; import ArrowBackIcon from '@mui/icons-material/ArrowBack'; import { useNavigate } from 'react-router-dom'; -import Map from '../map/core/Map'; +import MapView from '../map/core/MapView'; import MapCurrentLocation from '../map/MapCurrentLocation'; import MapGeofenceEdit from '../map/MapGeofenceEdit'; import GeofencesList from './GeofencesList'; @@ -77,10 +77,10 @@ const GeofencesPage = () => { <GeofencesList /> </Drawer> <div className={classes.mapContainer}> - <Map> + <MapView> <MapCurrentLocation /> <MapGeofenceEdit /> - </Map> + </MapView> </div> </div> </div> diff --git a/modern/src/other/ReplayPage.js b/modern/src/other/ReplayPage.js index fcf01fc7..4893dda9 100644 --- a/modern/src/other/ReplayPage.js +++ b/modern/src/other/ReplayPage.js @@ -13,7 +13,7 @@ import FastForwardIcon from '@mui/icons-material/FastForward'; import FastRewindIcon from '@mui/icons-material/FastRewind'; import { useNavigate } from 'react-router-dom'; import { useSelector } from 'react-redux'; -import Map from '../map/core/Map'; +import MapView from '../map/core/MapView'; import MapRoutePath from '../map/MapRoutePath'; import MapPositions from '../map/MapPositions'; import { formatTime } from '../common/util/formatter'; @@ -143,12 +143,12 @@ const ReplayPage = () => { return ( <div className={classes.root}> - <Map> + <MapView> <MapRoutePath positions={positions} /> {index < positions.length && ( <MapPositions positions={[positions[index]]} onClick={onClick} /> )} - </Map> + </MapView> <div className={classes.sidebar}> <Paper elevation={3} square> <Toolbar> |