Google Maps: Auto close open InfoWindows?

前端 未结 12 704
终归单人心
终归单人心 2020-12-02 05:30

On my site, I\'m using Google Maps API v3 to place house markers on the map.

The InfoWindows stay open unless you explicitly click the close icon. Meaning, you can h

12条回答
  •  长情又很酷
    2020-12-02 06:14

    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.

提交回复
热议问题