Hi am new to google maps. I have used gmaps jquery plugin for displaying map. In that i have my own markers and polylines for some locations,and displaying the infowindow wh
There is a close() function for InfoWindows. Just keep track of the last opened window, and call the close function on it when a new window is created.
This demo(http://www.lootogo.com/googlemapsapi3/markerPlugin.html) has the functionality you're looking for. I found it in the Maps API V3 demo gallery.