On 8 September 2010 21:04, ss ss <[email protected]> wrote:
> Dear Andrew,
>                    I have done like below but when I close it does not
> trigger the onCloseFn function?
> map.openInfoWindow(latlng,htmlString,onCloseFn);
>
> function onCloseFn() {
>              alert('Closing');
>              //map.recenterOrPanToLatLng(mblcPoint); // my center Point
>             }

As I say, the documentation is useful.

map.openInfoWindow(latlng,htmlString,{onCloseFn:onCloseFn});

The first onCloseFn: is an attribute of the {object}; the second --
the value of the attribute -- is the name of your function.

Or, you could explicitly add an event listener to the map to listen
for the infowindowclose event as Nathan has provided. Don't do both
though.

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