aboutsummaryrefslogtreecommitdiff
path: root/modern/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-28 17:53:24 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-28 17:53:24 -0700
commit06c98c0b8216bbba5bf971cb92138741df03f1c4 (patch)
tree431c7e29649ed3824a26c01615904fa9cce81375 /modern/src/main
parent080164d310c9f789b400e9909c12423bf31ef79c (diff)
downloadtrackermap-web-06c98c0b8216bbba5bf971cb92138741df03f1c4.tar.gz
trackermap-web-06c98c0b8216bbba5bf971cb92138741df03f1c4.tar.bz2
trackermap-web-06c98c0b8216bbba5bf971cb92138741df03f1c4.zip
Improve live routes (fix #1017)
Diffstat (limited to 'modern/src/main')
-rw-r--r--modern/src/main/MainMap.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/modern/src/main/MainMap.js b/modern/src/main/MainMap.js
index 07bb3c42..273a7787 100644
--- a/modern/src/main/MainMap.js
+++ b/modern/src/main/MainMap.js
@@ -18,7 +18,6 @@ import MapGeocoder from '../map/geocoder/MapGeocoder';
import MapScale from '../map/MapScale';
import MapNotification from '../map/notification/MapNotification';
import useFeatures from '../common/util/useFeatures';
-import { useAttributePreference } from '../common/util/preferences';
const MainMap = ({ filteredPositions, selectedPosition, onEventsClick }) => {
const theme = useTheme();
@@ -30,8 +29,6 @@ const MainMap = ({ filteredPositions, selectedPosition, onEventsClick }) => {
const features = useFeatures();
- const mapLiveRoutes = useAttributePreference('mapLiveRoutes', 'none');
-
const onMarkerClick = useCallback((_, deviceId) => {
dispatch(devicesActions.select(deviceId));
}, [dispatch]);
@@ -42,7 +39,7 @@ const MainMap = ({ filteredPositions, selectedPosition, onEventsClick }) => {
<MapOverlay />
<MapGeofence />
<MapAccuracy positions={filteredPositions} />
- {mapLiveRoutes !== 'none' && <MapLiveRoutes />}
+ <MapLiveRoutes />
<MapPositions
positions={filteredPositions}
onClick={onMarkerClick}