Wasn't it Mihai Stanescu who wrote:
>Can this be done without closing and reopening the info window?
>I do not want to compute size of window either.

You have to do one or the other. The API only calculates the size for 
you when you open the info window.

There are some awkward technicalities involved with trying to change the 
contents of the existing info window, so I recommend closing and 
reopening. It's probably not as hard as you might think, particularly if 
you use custom events to handle the changes.

E.g. a "click" event on a marker opens the default info window, but a 
"custom_1" event on that marker opens a different info window. The 
GEvent.addListener(marker,"custom_1") code looks exactly like the 
GEvent.addListener(marker,"click") code except that it displays 
different content. When you want to switch, you perform
GEvent.trigger(marker,"custom_1") in exactly the same sort of way that 
you would use GEvent.trigger(marker,"click") from a sidebar.

See: http://econym.org.uk/gmap/example_events.htm

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


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