Have just one InfoWindow open in Google Maps API v3

后端 未结 10 931
盖世英雄少女心
盖世英雄少女心 2020-11-28 03:18

I need to have only one InfoWindow open on my Google Map. I need to close all other InfoWindows before I open a new one.

Can someone show me how to do this?

10条回答
  •  天涯浪人
    2020-11-28 03:40

    Google Maps allows you to only have one info window open. So if you open a new window, then the other one closes automatically.

提交回复
热议问题