traccar / traccar-web

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

draw route with speed based color #1243

Closed jcardus closed 1 week ago

jcardus commented 2 weeks ago

Draw the route with intepolated color. Changed MapRoutePoints arrow to text instead of icon so that we can change the color. I tried to use the palette instead of the hard coded yellow and red colors, but it didn't look good.

Captura de ecrã 2024-06-16, às 20 00 39
ivanfmartinez commented 2 weeks ago

Very nice to see speed differences, but interpolating with current max speeds can have different colors when looking for different data.

Maybe this can be a option to use max speed of view or a fixed configurable number per device because 80 km/h can be very good to see in red for a small truck, but not for a standard car that can run at 120 km/h on roads.

Or if still using the max speed at least show it to give to the user a notion about how the colors are distributed.

ivanfmartinez commented 2 weeks ago

personally I like the success -> warrning -> error version

green on low speed, red on higher speed

jcardus commented 1 week ago

@ivanfmartinez I'm also thinking about putting a legend with the colors for 0 km/h and max km/h, but I want to finish this PR first.

tananaev commented 1 week ago

Merged, thank you.