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 has the functionality you're looking for. I found it in the Maps API V3 demo gallery.
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalThere 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 has the functionality you're looking for. I found it in the Maps API V3 demo gallery.
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 has the functionality you're looking for. I found it in the Maps API V3 demo gallery.
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.