我正在使用谷歌地图的InfoBubble。除了close()函数之外,所有的功能都运行得很好。之前我使用的是InfoWindows,在那里它是有效的。
顺便说一句,Firebug没有报告错误。
我的InfoBubble看起来像这样:
var infoBubble = new InfoBubble({
map: map,
content: $('#balloon-container').html(),
position: new google.maps.LatLng(areas[area].lat, areas[area].lng),
shadowStyle: 1,
padding: 0,
borderRadius: 0,
arrowSize: 10,
borderWidth: 1,
borderColor: '#ccc',
disableAutoPan: true,
hideCloseButton: true,
arrowPosition: 15,
arrowStyle: 0
});如果我执行下面的命令,所有的气泡都会打开:
infoBubble.open();
infoBubble.close();有什么想法吗?
谢谢,
罗恩
发布于 2012-09-10 20:20:21
那infoBubble.setMap(null)呢?
https://stackoverflow.com/questions/12351502
复制相似问题