I've done something similar to keep just one infoWindow open.
I initialize a var like this
var currentInfoWindow = null;
then on every marker click event I do something like this:
var infowindow = new google.maps.InfoWindow({
content: "your content here"
});
google.maps.event.addListener(marker, 'click', function() {
if (currentInfoWindow != null) {
currentInfoWindow.close();
}
infowindow.open(map, marker);
currentInfoWindow = infowindow;
});
On Jun 18, 11:24 am, "
geocode...@gmail.com" <
geocode...@gmail.com>
wrote: