aboutsummaryrefslogtreecommitdiff
path: root/modern/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/main')
-rw-r--r--modern/src/main/MainMap.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/main/MainMap.js b/modern/src/main/MainMap.js
index 279f3a85..07bb3c42 100644
--- a/modern/src/main/MainMap.js
+++ b/modern/src/main/MainMap.js
@@ -30,7 +30,7 @@ const MainMap = ({ filteredPositions, selectedPosition, onEventsClick }) => {
const features = useFeatures();
- const mapLiveRoutes = useAttributePreference('mapLiveRoutes', false);
+ const mapLiveRoutes = useAttributePreference('mapLiveRoutes', 'none');
const onMarkerClick = useCallback((_, deviceId) => {
dispatch(devicesActions.select(deviceId));
@@ -42,7 +42,7 @@ const MainMap = ({ filteredPositions, selectedPosition, onEventsClick }) => {
<MapOverlay />
<MapGeofence />
<MapAccuracy positions={filteredPositions} />
- {mapLiveRoutes && <MapLiveRoutes />}
+ {mapLiveRoutes !== 'none' && <MapLiveRoutes />}
<MapPositions
positions={filteredPositions}
onClick={onMarkerClick}