Skip to main content
Removed dead link
Source Link
Machavity
  • 31.8k
  • 27
  • 97
  • 108

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.

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.

Source Link
Chris B
  • 15.9k
  • 5
  • 35
  • 40

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.