4

我正在使用 Google Maps InfoBubble。除了功能,一切都很好close()。以前我用过InfoWindows,它在那里工作。

顺便说一句,Firebug 没有报告错误。

我的信息气泡看起来像这样:

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();

有任何想法吗?

谢谢,

罗恩

4

1 回答 1

3

怎么样infoBubble.setMap(null)??

于 2012-09-10T12:20:21.150 回答