aboutsummaryrefslogtreecommitdiff
path: root/modern/src/other
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-28 07:37:24 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-28 07:37:24 -0700
commit47fdc633966a8f2baefb5424042de6be2ecd1ab6 (patch)
tree9817e5b02898636f146c4ed7c62aa8221310bb6f /modern/src/other
parentab26340ead6eba063734286a374101951d08688b (diff)
downloadtrackermap-web-47fdc633966a8f2baefb5424042de6be2ecd1ab6.tar.gz
trackermap-web-47fdc633966a8f2baefb5424042de6be2ecd1ab6.tar.bz2
trackermap-web-47fdc633966a8f2baefb5424042de6be2ecd1ab6.zip
Add map to stops report
Diffstat (limited to 'modern/src/other')
-rw-r--r--modern/src/other/EventPage.js6
-rw-r--r--modern/src/other/GeofencesPage.js6
-rw-r--r--modern/src/other/ReplayPage.js6
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>