Hi and thanks for the reply.

Closing the infowindow manually after 'fit map to member locations' or
'zoom in' is clicked was a possibility but not really the behaviour i
wanted.
I only want the infowindow to close if the cluster marker it was open
on is removed from the map.

However a little experiment has fixed the problem.

I've used setTimeout() to trigger the click on the cluster marker
after a 10 millisecond delay.
The delay is unnoticeable in use and the infowindow now automatically
closes if the cluster marker it was opened on is removed from the map.

Martin.


On 7 Apr, 10:50, William <[email protected]> wrote:
> On Apr 6, 12:05 pm, Martin <[email protected]> wrote:> Anyone got any ideas?
>
> it seems the link between the marker and infowindow is being lost
> somehow, so it's not being closed.
> Maybe the only way is to close it from the map when the "fit map to
> locations" is clicked:
>
> $link.onclick=function() {
>   $map.closeInfoWindow();
>   $map.setCenter($clusterMarker._clusterBounds.getCenter(),
> $map.getBoundsZoomLevel($clusterMarker._clusterBounds));
>
> };

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