aboutsummaryrefslogtreecommitdiff
path: root/modern/src/main/MainPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-17 07:03:25 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-17 07:03:25 -0700
commit6ec5eaf47904fbec5ac7ecd1939291e3aab60530 (patch)
tree599a59cdcbce26207090662f97ad4e8073a26c09 /modern/src/main/MainPage.js
parent13eaaebb02814e539648c3bc545c3e3d07f204c3 (diff)
downloadtrackermap-web-6ec5eaf47904fbec5ac7ecd1939291e3aab60530.tar.gz
trackermap-web-6ec5eaf47904fbec5ac7ecd1939291e3aab60530.tar.bz2
trackermap-web-6ec5eaf47904fbec5ac7ecd1939291e3aab60530.zip
Geofences on most maps
Diffstat (limited to 'modern/src/main/MainPage.js')
-rw-r--r--modern/src/main/MainPage.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js
index bcd62c7d..c42b5be5 100644
--- a/modern/src/main/MainPage.js
+++ b/modern/src/main/MainPage.js
@@ -19,7 +19,7 @@ import DevicesList from './DevicesList';
import MapView from '../map/core/MapView';
import MapSelectedDevice from '../map/main/MapSelectedDevice';
import MapAccuracy from '../map/main/MapAccuracy';
-import MapGeofence from '../map/main/MapGeofence';
+import MapGeofence from '../map/MapGeofence';
import MapCurrentLocation from '../map/MapCurrentLocation';
import BottomMenu from '../common/components/BottomMenu';
import { useTranslation } from '../common/components/LocalizationProvider';
@@ -148,7 +148,6 @@ const MainPage = () => {
const [mapOnSelect] = usePersistedState('mapOnSelect', false);
- const [mapGeofences] = usePersistedState('mapGeofences', true);
const [mapLiveRoutes] = usePersistedState('mapLiveRoutes', false);
const selectedDeviceId = useSelector((state) => state.devices.selectedId);
@@ -230,7 +229,7 @@ const MainPage = () => {
<div className={classes.root}>
<MapView>
<MapOverlay />
- {mapGeofences && <MapGeofence />}
+ <MapGeofence />
<MapAccuracy positions={filteredPositions} />
{mapLiveRoutes && <MapLiveRoutes />}
<MapPositions positions={filteredPositions} onClick={onClick} showStatus />