aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/RouteReportPage.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/reports/RouteReportPage.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/reports/RouteReportPage.js')
-rw-r--r--modern/src/reports/RouteReportPage.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js
index bce63e31..a37ad7b1 100644
--- a/modern/src/reports/RouteReportPage.js
+++ b/modern/src/reports/RouteReportPage.js
@@ -20,6 +20,7 @@ import MapPositions from '../map/MapPositions';
import useReportStyles from './common/useReportStyles';
import TableShimmer from '../common/components/TableShimmer';
import MapCamera from '../map/MapCamera';
+import MapGeofence from '../map/MapGeofence';
const RouteReportPage = () => {
const classes = useReportStyles();
@@ -67,6 +68,7 @@ const RouteReportPage = () => {
{selectedItem && (
<div className={classes.containerMap}>
<MapView>
+ <MapGeofence />
{[...new Set(items.map((it) => it.deviceId))].map((deviceId) => (
<MapRoutePath key={deviceId} positions={items.filter((position) => position.deviceId === deviceId)} />
))}