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