hi coders. i am working on a googlemaps project and i need help in simulating a moving car marker on the map. i have a remote gps device that sends gps co-ordinates regarding its location to a database every 5 seconds. i need to read from the database every 5 seconds to determine the new co-ordinates and draw the new marker on the map. And that is where am faced with the problem. i read here that setTimeout() can be used to set delays
this code i have here delays only the first time the loop executes. please help.
i have used an alert window to simulate the drawing of a marker on the map since this isnt a GoogleMaps forum.