diff options
author | Anton Tananaev <anton@traccar.org> | 2022-10-28 17:53:24 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-10-28 17:53:24 -0700 |
commit | 06c98c0b8216bbba5bf971cb92138741df03f1c4 (patch) | |
tree | 431c7e29649ed3824a26c01615904fa9cce81375 /modern/src/main | |
parent | 080164d310c9f789b400e9909c12423bf31ef79c (diff) | |
download | trackermap-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.js | 5 |
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} |