aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-26 16:36:05 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-26 16:36:05 -0700
commitd2af6d5f6b24928d63d7ce7152b4eab4ade7a5b0 (patch)
tree4b5c40e81d0b615469c6842a9b6603ed4b3964af
parent6226b06271ae75e0be28dd16c64cf2e3c7392718 (diff)
downloadtrackermap-web-d2af6d5f6b24928d63d7ce7152b4eab4ade7a5b0.tar.gz
trackermap-web-d2af6d5f6b24928d63d7ce7152b4eab4ade7a5b0.tar.bz2
trackermap-web-d2af6d5f6b24928d63d7ce7152b4eab4ade7a5b0.zip
Rename path map plugin
-rw-r--r--modern/src/map/MapRoutePath.js (renamed from modern/src/map/MapReplayPath.js)4
-rw-r--r--modern/src/other/ReplayPage.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/modern/src/map/MapReplayPath.js b/modern/src/map/MapRoutePath.js
index 139490db..5797e6dd 100644
--- a/modern/src/map/MapReplayPath.js
+++ b/modern/src/map/MapRoutePath.js
@@ -3,7 +3,7 @@ import { useEffect } from 'react';
import { useSelector } from 'react-redux';
import { map } from './core/Map';
-const MapReplayPath = ({ positions }) => {
+const MapRoutePath = ({ positions }) => {
const id = 'replay';
const reportColor = useSelector((state) => {
@@ -80,4 +80,4 @@ const MapReplayPath = ({ positions }) => {
return null;
};
-export default MapReplayPath;
+export default MapRoutePath;
diff --git a/modern/src/other/ReplayPage.js b/modern/src/other/ReplayPage.js
index 14f9d79b..9331777e 100644
--- a/modern/src/other/ReplayPage.js
+++ b/modern/src/other/ReplayPage.js
@@ -14,7 +14,7 @@ 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 MapReplayPath from '../map/MapReplayPath';
+import MapRoutePath from '../map/MapRoutePath';
import MapPositions from '../map/MapPositions';
import { formatTime } from '../common/util/formatter';
import ReportFilter from '../reports/components/ReportFilter';
@@ -144,7 +144,7 @@ const ReplayPage = () => {
return (
<div className={classes.root}>
<Map>
- <MapReplayPath positions={positions} />
+ <MapRoutePath positions={positions} />
{index < positions.length && (
<MapPositions positions={[positions[index]]} onClick={onClick} />
)}