我试图在'clusterclick'事件中向infoCluster添加一个infoBubble,但是infoBubble.Open方法要求绑定一个'marker'参数。问题是markerCluster不是google.maps.Point,因此不可能将infoBubble绑定到它。google maps api v3 + infoBubble in markerClusterer
我将markerCluster的位置分配给了infoBubble,但是infoBubble在新位置重新绘制,将标记从其位置移开。
有没有人有同样的问题?有没有修改原始infoBubble代码的解决方案?
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/
将其更改为top + =和left + =更有意义。 [-10,-10]会向左移动。 [10,10]会向右移动。否则,很好的解决方案 – 2017-09-25 18:28:13