traccar / traccar-web

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
814 stars 1.12k forks source link

Add map linear scale / scale bar in reports #1266

Closed sys-crash closed 2 weeks ago

sys-crash commented 2 weeks ago

Is your feature request related to a problem? Please describe. In the webapp, on the main map, there's a useful linear scale / scale bar in the bottom right corner of the screen. But on the map in reports ->route or replay, this scale bar is absent.

Describe the solution you'd like I would like to see the scale bar when the map is shown in the Reports->route or replay.

Describe alternatives you've considered To have distance markers along each leg of the route, but not as convenient as a scale bar / linear scale.

Additional context Screenshot 2024-09-11 213605 Screenshot 2024-09-11 213753

Cris3021 commented 2 weeks ago

for that you must import the following in ReplayPage.jsx add the following line import MapScale from '../map/MapScale';

after this https://github.com/traccar/traccar-web/blob/58be5a5c33cfff06354e3148f8122b73362399c7/src/other/ReplayPage.jsx#L27

add the following line <MapScale />

after this https://github.com/traccar/traccar-web/blob/58be5a5c33cfff06354e3148f8122b73362399c7/src/other/ReplayPage.jsx#L166

Captura de pantalla 2024-09-11 a la(s) 4 48 35 p  m