Open martinschnurer opened 10 months ago
That's a great idea, I had a similar thought in the past too. The current playback rate is based on a fixed number of points per second, determined by whatever is necessary to finish the playback in 60 seconds.
The current play state is updated in animationBody
of MapComponent.tsx
, so it would need to be adjusted to a fixed amount of elapsed time per second instead (when this option is turned on). See: https://github.com/pelmers/gpx-replay/blob/9ce11619753cc77a0dd2495906ef27cd06075cda/src/components/MapComponent.tsx#L170-L184
It would be amazing to respect speed. As a bike courrier i came here to make an issue about respecting stop time, to see where I pickup or drop goods. If an option to respect speed by giving each point a fixed amount of time it would indeed respect speed and stop time.
Then maybe some people could like an sub-option to respect speed without adding stop time (no one needs to know where you did your deeds) something like : if next point is at the same place, jump to next point, until point is far enough to assume movement.
Speed seems to be the same throughout the whole tour. If there could be an option to respect speed, it would be great.