Hi, I have a mobile phone application that sends the device’s gps location to a MySQL database every 30 seconds. Using the Google Static maps api, my location can be tracked in real-time on a web page. http://www.blossompark.net/staticmap2/staticdispatcher2.php How it works is, the webpage uses php to get the latest coordinates from the database and uses these to position the car. The webpage is reloaded every 20 seconds by putting a refresh tag in the header. When the page reloads the car is redrawn with the new coordinates..... This all works fine live, I.e. I can be seen driving to my destination on the webpage... However, the page reloading is noticeable in a browser and especially noticeable on a mobile phone browser. I have been looking into Ajax technologies which may be a solution to the page refresh issue and using the following tutorial as a reference http://code.google.com/apis/maps/articles/phpsqlgeocode.html I have managed to create a webpage that can load all positions onto my map using javascript/xml http://www.blossompark.net/v3/dispatcher2.htm
My questions are 1. Is it possible to update a static map without reloading the webpage? 2. If the answer to the above is no, is there some way I can minimise the effect of the page reload? 3. Is the only option for me to minimise the effect of page reloads to use Ajax technologies? 4. I want to be able to replay my journeys either using the static maps api or JavaScript Maps API, how can I best load individual markers over a period of time to simulate movement? To summarise, as I will have to invest a lot of time in learning these technologies, I am trying to make the right decision on what to learn before I go forward. Can I go down the Static Maps API road or will I have to use the JavaScript Map API? Ultimately what I want to achieve is a map that displays my location in a visually relatively seamless fashion and also be able to replay these journeys in a way that simulates movement. Is there a way I can achieve what I want using the Static Maps Api, or should I be moving to the JavaScript Maps API and begin learning JavaScript/XML? I would appreciate any advice on this as it will determine how wisely my time is spent. Thanking you for taking the time to read this sincerely BP -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
