aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-02-03 14:57:02 -0800
committerAnton Tananaev <anton@traccar.org>2023-02-03 14:57:02 -0800
commit84ae7fa37557db0cf498bc639f33d0ac333816a4 (patch)
treec66898606688a4e6265ef0326fb4d379f11e25e7 /modern/src/reports
parent63e29d240b1030b3b6e0c8c349118f9c3ee15ccc (diff)
downloadtrackermap-web-84ae7fa37557db0cf498bc639f33d0ac333816a4.tar.gz
trackermap-web-84ae7fa37557db0cf498bc639f33d0ac333816a4.tar.bz2
trackermap-web-84ae7fa37557db0cf498bc639f33d0ac333816a4.zip
Add route name
Diffstat (limited to 'modern/src/reports')
-rw-r--r--modern/src/reports/CombinedReportPage.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/modern/src/reports/CombinedReportPage.js b/modern/src/reports/CombinedReportPage.js
index a5d994fe..59d5fb69 100644
--- a/modern/src/reports/CombinedReportPage.js
+++ b/modern/src/reports/CombinedReportPage.js
@@ -54,7 +54,11 @@ const CombinedReportPage = () => {
<MapView>
<MapGeofence />
{items.map((item) => (
- <MapRoutePath key={item.deviceId} coordinates={item.route} />
+ <MapRoutePath
+ key={item.deviceId}
+ name={devices[item.deviceId].name}
+ coordinates={item.route}
+ />
))}
</MapView>
<MapCamera coordinates={items.flatMap((item) => item.route)} />