I ran into the issue that speed visualization didn't work properly (it only showed "Infinity" in the sidebar and all lines were blue).
The problem was that one of my datasets has an instance of Infinity speed at some point, so I added a condition to check if the speed is a finite number during getSpeedMax() and just ignore that entry if it is infinite. With this fix in place, the maximum speed is now calculated correctly and everything works as intended again.
I ran into the issue that speed visualization didn't work properly (it only showed "Infinity" in the sidebar and all lines were blue). The problem was that one of my datasets has an instance of
Infinity
speed at some point, so I added a condition to check if the speed is a finite number duringgetSpeedMax()
and just ignore that entry if it is infinite. With this fix in place, the maximum speed is now calculated correctly and everything works as intended again.Before the fix:
After the fix: