thanks one and all. I can create the XML file from php...yes. I would of course have a script running on the server to create the current xml file.
So next is to read the XML file. I found a very nice presentation in the api blog http://googlemapsapi.blogspot.com/2007/02/gdownloadurl-update-better-error.html so I copied that page and the data file and have it working nicely....I then added the setInterval("load()",10000) near the end of the script. At this point I am having a problem in getting "fresh data"... I keep getting old data. (As predicted by Larry in this thread). He mentions a parameter that will make this problem go away....well I am stuck at this point.....I tested this by increasing the interval to one minute...went and switched the data file and the map loaded again but no change in the marker points. So how do I keep the page from caching the data? I am going to now write the php script to create the xml data file...that way I will have dynamic data. Will also have to adjust the map center to somewhere closer to the data points....although the example is in a much nicer weather zone. I am not including the borrowed "source" here as it is virtually the same as the blogspot....key different, and the setInterval. question about xml-------can I also pass all the data that would go in the infowindow?......gotta have that. may also want to read polyline data, so I guess I have to learn more about xml.....let me get through these hoops first. cheers Brian -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
