On Apr 30, 10:14 am, "[email protected]" <[email protected]>
wrote:
> On Apr 30, 8:51 am, Stuart <[email protected]> wrote:
>
> > I'm using Mike Williams' EGeoXml extension to help automate the open
> > of an infowindow when a map page loads (the map is populated from a
> > kml file). I'm using the parsed event in GEvent.addlistener so that
> > the simulated "click" happens after all of the markers have been
> > loaded. After some fiddling, I've got this working on a site under
> > development.
>
> > The problem is that after the first load of a particular map page the
> > automatic open infowindow behaviour fails to get triggered. (In other
> > words, if the user navigates to another page and then comes back to
> > the previous map, they don't get the open infowindow). I can force it
> > to happen by clearing my browser cache and reloading, or even just
> > refreshing the page (Firefox 3.x). So I'm wondering if the parsed
> > event is somehow cache aware, and if so if there is a way to retrigger
> > the parse event. Or perhaps another way to get the infowindow to open
> > without a user having to click on anything?
>
> > An example map page is here:
>
> >http://www.goodwill.ab.ca/site/manning-crossing/
>
> > Once loaded, you can navigate to the other map page by using the
> > "Donation Location" and "Shopping location" dropdowns above the big
> > "Give" and "Get" headers. As I say, the site is still under
> > development and may very well have some validation issues for the time
> > being.
>
> I get a "not implemented" error on this line:
> window.onload=openIWindow();
>
> I think you want
> window.onload=openIWindow;
>
> But...
>
> You should set up the listener before you call the exml.parse()
> method, otherwise you might miss the "parsed"  event.  Currenly you
> set up your map, then when your page fires its onload event you
> configure the listener.  You should do both in the onload function.

FYI - probably what is happening is that when you navigate back to the
page the kml is cached, so it takes a much shorter time to load, and
finishes loading and being parsed before you set up the listener.

  -- Larry


>
>
>
> > Thanks!
>
> > --
> > 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 
> > athttp://groups.google.com/group/google-maps-api?hl=en.
>
> --
> 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 
> athttp://groups.google.com/group/google-maps-api?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
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