On Dec 17, 1:54 pm, Pacino <[email protected]> wrote:
> the creation of infoWindow is asynchronous? Will any event occur when
> the infoWindow is created?

There doesn't appear to be such an event. I got your example to work
using
  setTimeout("alert(document.getElementById('panel1'));",1500)
  map.openInfoWindowHtml(map.getCenter(),"<div id='panel1'>test</
div>");

There's an unofficial list of events at http://econym.org.uk/gmap/gevent.htm

InfoWindows are modularised: the first time an infoWindow is opened, a
bit of code has to be loaded and run, and the graphics have to be
loaded. That's going to take a bit of time. Certainly the content
element(s) won't be available until after the infoWindow module is
loaded. There is a vaguely relevant issue logged at
http://code.google.com/p/gmaps-api-issues/issues/detail?id=410

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