diff options
author | Anton Tananaev <anton@traccar.org> | 2022-10-28 17:02:39 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-10-28 17:02:39 -0700 |
commit | 17b990eabe36138a4a879deef8d03b16ee27e1ba (patch) | |
tree | b1eb82f53012ad990163996d1ce633cbbbc19c6c /modern/src/main | |
parent | dd09b5c7ed235088d86ba9898261d74228b825ee (diff) | |
download | trackermap-web-17b990eabe36138a4a879deef8d03b16ee27e1ba.tar.gz trackermap-web-17b990eabe36138a4a879deef8d03b16ee27e1ba.tar.bz2 trackermap-web-17b990eabe36138a4a879deef8d03b16ee27e1ba.zip |
Change live routes config
Diffstat (limited to 'modern/src/main')
-rw-r--r-- | modern/src/main/MainMap.js | 4 |
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} |