diff options
Diffstat (limited to 'modern/src/reports')
-rw-r--r-- | modern/src/reports/EventReportPage.js | 2 | ||||
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 2 | ||||
-rw-r--r-- | modern/src/reports/StopReportPage.js | 13 |
3 files changed, 10 insertions, 7 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index 623f26bd..ce1772e4 100644 --- a/modern/src/reports/EventReportPage.js +++ b/modern/src/reports/EventReportPage.js @@ -143,7 +143,7 @@ const EventReportPage = () => { <div className={classes.containerMap}> <MapView> <MapGeofence /> - {position && <MapPositions positions={[position]} />} + {position && <MapPositions positions={[position]} titleField="fixTime" />} </MapView> {position && <MapCamera latitude={position.latitude} longitude={position.longitude} />} </div> diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index a1212ecd..8d967b19 100644 --- a/modern/src/reports/RouteReportPage.js +++ b/modern/src/reports/RouteReportPage.js @@ -83,7 +83,7 @@ const RouteReportPage = () => { </Fragment> ); })} - <MapPositions positions={[selectedItem]} /> + <MapPositions positions={[selectedItem]} titleField="fixTime" /> </MapView> <MapCamera positions={items} /> </div> diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js index 36c4d124..a322304e 100644 --- a/modern/src/reports/StopReportPage.js +++ b/modern/src/reports/StopReportPage.js @@ -100,11 +100,14 @@ const StopReportPage = () => { <div className={classes.containerMap}> <MapView> <MapGeofence /> - <MapPositions positions={[{ - deviceId: selectedItem.deviceId, - latitude: selectedItem.latitude, - longitude: selectedItem.longitude, - }]} + <MapPositions + positions={[{ + deviceId: selectedItem.deviceId, + fixTime: selectedItem.startTime, + latitude: selectedItem.latitude, + longitude: selectedItem.longitude, + }]} + titleField="fixTime" /> </MapView> <MapCamera latitude={selectedItem.latitude} longitude={selectedItem.longitude} /> |