Hi Mike,
Thank you so much for your reply, it makes a lot of
sense since i could not even seem to customize the markers on the
GGeoxml example. The feed is of all my latest panoramas on 360cities.
I like the idea of a relay server but is probably too complicated for
me, I will google it all the same.
I have another example where each marker is hand coded, I expect it
would work with that, but then I will keep on having to add code to
it.
Thanks so much for the interceptor example - great site by the way, it
helped me a few years ago, I seem to drift in and out of gmaps, I am a
photographer not really a coder and am always forgetting what I've
learned before.
is your inteceptor example global ?
I tried it here and added looping script http://bit.ly/8T6cpW
your global array code looks ace, could it work on the interceptor
example ?
Thank you very much Mike, really appreciate your time.
Best wishes,
tom
On Jan 19, 6:24 pm, Mike Williams <[email protected]> wrote:
> 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.