Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: , +
So I am doing a project where I upload a .txt file with gps coordinates of a train and when I press start the train starts moving on a map following that coordinates.

I allready have a range bar on the page, but my question is... Is there any way that I can regulate the speed of the "train" on the map? Making him go slower or faster?


What I have tried:

I have done some research on google, but nothing came up...
Posted
Updated 14-Oct-21 7:21am

1 solution

Quote:
Is there any way that I can regulate the speed of the "train" on the map? Making him go slower or faster?

Have a look at timers.
JavaScript Timing Events[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900