You've got bigger problems than that.

Your biggest problem is that GGeoXml doesn't expose the markers that it
adds to the map, so there's no way to programatically open infowindows
on them.

Since the KML file isn't in your own domain, you can't use GeoXml or
EGeoXml without a relay server to pull the data into your own domain in
serve it from there.

Unless you can obtain the data some other way, then the only thing I can
recommend is to listen for the addOverlay events as GGeoXml adds the
markers to the map. It's not easy, and it's not futureproof. See
  http://econym.org.uk/gmap/interceptor.htm


Your next problem is that in the AspSpider example, all the variables
and functions were global, but in your code everything is local to your
initialize() function. Code launched from setTimeout() executes in
global context and can only access global variables.


Once you've sorted that out, you need to put your marker references into
a global array and do something like

  var counter=0;
  function LoopMap() {
    if (++counter > gmarkers.length) counter = 0;
    GEvent.trigger(gmarkers[counter],"click");
    setTimeout("LoopMap()",10000);
  }

I assume that you want to open the infowindow with the contents
specified in the KML rather than hard coding the infowindow text as in
the AspSpider example, so just send a "click" event to the marker.

-- 
Mike Williams
-- 
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.


Reply via email to