aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map')
-rw-r--r--modern/src/map/MapCurrentLocation.js (renamed from modern/src/map/CurrentLocationMap.js)4
-rw-r--r--modern/src/map/MapGeofenceEdit.js (renamed from modern/src/map/GeofenceEditMap.js)4
-rw-r--r--modern/src/map/MapPositions.js (renamed from modern/src/map/PositionsMap.js)4
-rw-r--r--modern/src/map/MapReplayPath.js (renamed from modern/src/map/ReplayPathMap.js)4
-rw-r--r--modern/src/map/main/MapAccuracy.js (renamed from modern/src/map/main/AccuracyMap.js)4
-rw-r--r--modern/src/map/main/MapCurrentPositions.js (renamed from modern/src/map/main/CurrentPositionsMap.js)8
-rw-r--r--modern/src/map/main/MapDefaultCamera.js (renamed from modern/src/map/main/DefaultCameraMap.js)4
-rw-r--r--modern/src/map/main/MapGeofence.js (renamed from modern/src/map/main/GeofenceMap.js)4
-rw-r--r--modern/src/map/main/MapLiveRoutes.js (renamed from modern/src/map/main/LiveRoutesMap.js)4
-rw-r--r--modern/src/map/main/MapSelectedDevice.js (renamed from modern/src/map/main/SelectedDeviceMap.js)4
10 files changed, 22 insertions, 22 deletions
diff --git a/modern/src/map/CurrentLocationMap.js b/modern/src/map/MapCurrentLocation.js
index 815cd42d..691c6be3 100644
--- a/modern/src/map/CurrentLocationMap.js
+++ b/modern/src/map/MapCurrentLocation.js
@@ -2,7 +2,7 @@ import maplibregl from 'maplibre-gl';
import { useEffect } from 'react';
import { map } from './core/Map';
-const CurrentLocationMap = () => {
+const MapCurrentLocation = () => {
useEffect(() => {
const control = new maplibregl.GeolocateControl({
positionOptions: {
@@ -18,4 +18,4 @@ const CurrentLocationMap = () => {
return null;
};
-export default CurrentLocationMap;
+export default MapCurrentLocation;
diff --git a/modern/src/map/GeofenceEditMap.js b/modern/src/map/MapGeofenceEdit.js
index 0d7950a2..c64eb736 100644
--- a/modern/src/map/GeofenceEditMap.js
+++ b/modern/src/map/MapGeofenceEdit.js
@@ -34,7 +34,7 @@ const draw = new MapboxDraw({
}],
});
-const GeofenceEditMap = () => {
+const MapGeofenceEdit = () => {
const dispatch = useDispatch();
const history = useHistory();
@@ -138,4 +138,4 @@ const GeofenceEditMap = () => {
return null;
};
-export default GeofenceEditMap;
+export default MapGeofenceEdit;
diff --git a/modern/src/map/PositionsMap.js b/modern/src/map/MapPositions.js
index 2e152d34..170a6b11 100644
--- a/modern/src/map/PositionsMap.js
+++ b/modern/src/map/MapPositions.js
@@ -5,7 +5,7 @@ import { map } from './core/Map';
import { getStatusColor } from '../common/util/formatter';
import usePersistedState from '../common/util/usePersistedState';
-const PositionsMap = ({ positions, onClick }) => {
+const MapPositions = ({ positions, onClick }) => {
const id = 'positions';
const clusters = `${id}-clusters`;
@@ -139,4 +139,4 @@ const PositionsMap = ({ positions, onClick }) => {
return null;
};
-export default PositionsMap;
+export default MapPositions;
diff --git a/modern/src/map/ReplayPathMap.js b/modern/src/map/MapReplayPath.js
index 224502f1..be0fcb98 100644
--- a/modern/src/map/ReplayPathMap.js
+++ b/modern/src/map/MapReplayPath.js
@@ -2,7 +2,7 @@ import maplibregl from 'maplibre-gl';
import { useEffect } from 'react';
import { map } from './core/Map';
-const ReplayPathMap = ({ positions }) => {
+const MapReplayPath = ({ positions }) => {
const id = 'replay';
useEffect(() => {
@@ -62,4 +62,4 @@ const ReplayPathMap = ({ positions }) => {
return null;
};
-export default ReplayPathMap;
+export default MapReplayPath;
diff --git a/modern/src/map/main/AccuracyMap.js b/modern/src/map/main/MapAccuracy.js
index 870df38f..11ea64ed 100644
--- a/modern/src/map/main/AccuracyMap.js
+++ b/modern/src/map/main/MapAccuracy.js
@@ -4,7 +4,7 @@ import circle from '@turf/circle';
import { map } from '../core/Map';
-const AccuracyMap = () => {
+const MapAccuracy = () => {
const id = 'accuracy';
const positions = useSelector((state) => ({
@@ -52,4 +52,4 @@ const AccuracyMap = () => {
return null;
};
-export default AccuracyMap;
+export default MapAccuracy;
diff --git a/modern/src/map/main/CurrentPositionsMap.js b/modern/src/map/main/MapCurrentPositions.js
index 76a0a0b9..ff05d2d1 100644
--- a/modern/src/map/main/CurrentPositionsMap.js
+++ b/modern/src/map/main/MapCurrentPositions.js
@@ -2,9 +2,9 @@ import React, { useCallback } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { devicesActions } from '../../store';
-import PositionsMap from '../PositionsMap';
+import MapPositions from '../MapPositions';
-const CurrentPositionsMap = () => {
+const MapCurrentPositions = () => {
const dispatch = useDispatch();
const onClick = useCallback((_, deviceId) => {
@@ -12,7 +12,7 @@ const CurrentPositionsMap = () => {
}, [dispatch]);
const positions = useSelector((state) => state.positions.items);
- return (<PositionsMap positions={Object.values(positions)} onClick={onClick} />);
+ return (<MapPositions positions={Object.values(positions)} onClick={onClick} />);
};
-export default CurrentPositionsMap;
+export default MapCurrentPositions;
diff --git a/modern/src/map/main/DefaultCameraMap.js b/modern/src/map/main/MapDefaultCamera.js
index 256fbd04..24296c2f 100644
--- a/modern/src/map/main/DefaultCameraMap.js
+++ b/modern/src/map/main/MapDefaultCamera.js
@@ -4,7 +4,7 @@ import { useSelector } from 'react-redux';
import { usePreference } from '../../common/util/preferences';
import { map } from '../core/Map';
-const DefaultCameraMap = () => {
+const MapDefaultCamera = () => {
const selectedDeviceId = useSelector((state) => state.devices.selectedId);
const positions = useSelector((state) => state.positions.items);
@@ -49,4 +49,4 @@ const DefaultCameraMap = () => {
return null;
};
-export default DefaultCameraMap;
+export default MapDefaultCamera;
diff --git a/modern/src/map/main/GeofenceMap.js b/modern/src/map/main/MapGeofence.js
index c0912cb2..ee1bc884 100644
--- a/modern/src/map/main/GeofenceMap.js
+++ b/modern/src/map/main/MapGeofence.js
@@ -4,7 +4,7 @@ import { useSelector } from 'react-redux';
import { map } from '../core/Map';
import { geofenceToFeature } from '../core/mapUtil';
-const GeofenceMap = () => {
+const MapGeofence = () => {
const id = 'geofences';
const geofences = useSelector((state) => state.geofences.items);
@@ -81,4 +81,4 @@ const GeofenceMap = () => {
return null;
};
-export default GeofenceMap;
+export default MapGeofence;
diff --git a/modern/src/map/main/LiveRoutesMap.js b/modern/src/map/main/MapLiveRoutes.js
index 5c629d86..6e79d7af 100644
--- a/modern/src/map/main/LiveRoutesMap.js
+++ b/modern/src/map/main/MapLiveRoutes.js
@@ -4,7 +4,7 @@ import { useSelector } from 'react-redux';
import { map } from '../core/Map';
import { usePrevious } from '../../reactHelper';
-const LiveRoutesMap = () => {
+const MapLiveRoutes = () => {
const id = 'liveRoute';
const selectedDeviceId = useSelector((state) => state.devices.selectedId);
@@ -77,4 +77,4 @@ const LiveRoutesMap = () => {
return null;
};
-export default LiveRoutesMap;
+export default MapLiveRoutes;
diff --git a/modern/src/map/main/SelectedDeviceMap.js b/modern/src/map/main/MapSelectedDevice.js
index 250be372..ba3bc784 100644
--- a/modern/src/map/main/SelectedDeviceMap.js
+++ b/modern/src/map/main/MapSelectedDevice.js
@@ -6,7 +6,7 @@ import { map } from '../core/Map';
import { usePrevious } from '../../reactHelper';
import usePersistedState from '../../common/util/usePersistedState';
-const SelectedDeviceMap = () => {
+const MapSelectedDevice = () => {
const selectedDeviceId = useSelector((state) => state.devices.selectedId);
const previousDeviceId = usePrevious(selectedDeviceId);
@@ -27,4 +27,4 @@ const SelectedDeviceMap = () => {
return null;
};
-export default SelectedDeviceMap;
+export default MapSelectedDevice;