> What I have is an xml file that changes its data every 60 seconds. I > would like to use LONG and LAT and a SPEED value from the file to > recenter the map each time. However I need a smooth continual motion > of the map not a jump from 1 point to the next every 60 seconds.
Do the fancy stuff later, get the basic working first. Start with just a moving marker. It's pretty easy to find out how to get javascript to kick off periodic events, like fetching a data update. Issues you will have to deal with - Defeat various caching mechanisms, or you may always be getting cached data instead of updated data. Using AJAX in such a short timescale, you'll have to account for the probability of data arriving back in a different order to requests. e.g. request A , pause, request B, ... response B, response A You'll also have to take care with the scope and sequence of your coding, to avoid any unforeseen unpleasantness if the previous response arrives and gets processed right in the middle of setting up same later request. You may have to take the "XML file" updating process into account - what will happen at that end, if your maps request arrives in the middle of an XML source update? Will it matter if two data requests arrive during one XML source update period? None of that is map-related cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
