【问题标题】:InfoWindow replacement for Google Maps v3Google Maps v3 的 InfoWindow 替代品
【发布时间】:2011-01-09 11:38:44
【问题描述】:

我正在寻找 Google Maps v3 的 InfoWindow 替代品。我想用它来弹出标记鼠标悬停。标准的 InfoWindow 完全无法使用,因为它会平移并使自己变得讨厌。 Google Maps v2 具有出色的 GxMarker(不适用于新的 API):http://code.toeat.com/gxmarker.html

有谁知道 Google Maps v3 的类似插件,或其他解决 InfoWindow 专横行为的方法?

【问题讨论】:

标签: google-maps google-maps-api-3 infowindow


【解决方案1】:

在 InfoWindow 选项中,您可以通过将 disableAutoPan 设置为 true 来禁用平移,您可以在参考页面上阅读更多信息。

不过还有一个InfoBox实用程序库,可以找到here

【讨论】:

    【解决方案2】:

    http://econym.org.uk/gmap/ebubble.htm 是我在 V2 中使用的,当您查看代码时,您会发现它相当简单,如果稍作修改,也可以与 V3 一起使用。

    希望对你有帮助。

    【讨论】:

      【解决方案3】:
      var infowindow2 = new google.maps.InfoWindow({
          disableAutoPan: true
      });
      

      【讨论】:

        猜你喜欢
        • 2011-02-11
        • 2012-01-06
        • 1970-01-01
        • 2013-11-08
        • 2016-02-10
        • 2012-09-06
        • 2011-01-03
        • 2010-12-06
        • 1970-01-01
        相关资源
        最近更新 更多