开发者

Google Maps API v3 - list all open Infowindows

开发者 https://www.devze.com 2023-01-23 03:21 出处:网络
is it possible to get a list of all open infowindows?开发者_如何学Go ie. like we can get for markers.

is it possible to get a list of all open infowindows?开发者_如何学Go ie. like we can get for markers.

thank you in advance!


You can't get a list of all markers in V3. A map has no idea about what markers are on it, only the marker knows which map it is bound to.

What you should do is create a array that you add the infowindows to when you open them and remove them when you close it.

0

精彩评论

暂无评论...
验证码 换一张
取 消