diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-22 09:57:51 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-22 09:57:51 -0700 |
commit | 67d7ce8e0f428c521d3d032e8145108c9b2a5f45 (patch) | |
tree | 9f350497ebc64951ce2070723ab2b66e1a0f5472 /modern/src/map/main | |
parent | 111347e3f40640aa4c43c0bc2666d7a92ce03bb2 (diff) | |
download | trackermap-web-67d7ce8e0f428c521d3d032e8145108c9b2a5f45.tar.gz trackermap-web-67d7ce8e0f428c521d3d032e8145108c9b2a5f45.tar.bz2 trackermap-web-67d7ce8e0f428c521d3d032e8145108c9b2a5f45.zip |
Rename map plugins
Diffstat (limited to 'modern/src/map/main')
-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 |
6 files changed, 14 insertions, 14 deletions
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; |