【问题标题】:google maps api multiple scripts use sensor or not [duplicate]谷歌地图api多个脚本是否使用传感器[重复]
【发布时间】:2013-07-17 04:42:25
【问题描述】:

我的网站在一页上有两张地图,一张使用传感器,一张不使用。如果我添加两个脚本,我会得到错误。

<script type="text/javascript" src="//maps.google.com/maps/api/js?v=3&sensor=false"></script>
<script type="text/javascript" src="//maps.google.com/maps/api/js?v=3&sensor=true"></script>

我应该只用一个吗?

【问题讨论】:

    标签: google-maps-api-3


    【解决方案1】:

    是的,你只使用一个。

    如果您想使用传感器,请将其设置为 true。如果你不想使用它也一样。

    根据我的经验,如果您不打算使用它,将其保留为 true 不会有任何问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-02
      • 1970-01-01
      • 1970-01-01
      • 2012-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多