Each if window has a closeclick event. Simply add a listener for the closeclick event of the infowindow and then you can call your function to hide the div within the event handler for the closeclick event. info window has a closeclick event. Does this make sense?
On Fri, Jun 18, 2010 at 3:27 PM, mzman <[email protected]> wrote: > That is really close to what I am looking for. I am already using > something similar to that to show the DIV, but what I want is to > overload the closeInfoWindow() function so that anytime it is > triggered it also hides a DIV. > > Is this even possible? > > > > On Jun 18, 3:58 pm, Nathan Raley <[email protected]> wrote: > > I have an example that you might be able to implement at: > http://www.suntransformer.com/peter/GoogleAPI3/GoogleAPIv3test.html > > > > Look at the function that the street button calls. It is hiding and > showing > > my pano div. The script for it is in my streetview2.js so you'll need to > > look through that. > > > > Let me know if you have any questions. > > > > > > > > On Fri, Jun 18, 2010 at 2:15 PM, mzman <[email protected]> wrote: > > > I am wanting to hide a form DIV below my map when the infoWindow is > > > closed. What is the best way of doing this? > > > > > -- > > > 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]<google-maps-api%[email protected]> > <google-maps-api%2bunsubscr...@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://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]<google-maps-api%[email protected]> > . > For more options, visit this group at > http://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 at http://groups.google.com/group/google-maps-api?hl=en.
