【问题标题】:Why does google maps API not load on firefox?为什么 google maps API 无法在 firefox 上加载?
【发布时间】:2014-10-22 00:13:15
【问题描述】:

我使用的是 Google Maps API v3。 我的地图加载并且在 Safari 和 Chrome 中一切正常,但在 Firefox 中我收到错误“google.maps.Map 不是构造函数”。

在 Chrome 或 Safari 中,当我在控制台中输入“google.maps”时,我得到一个复杂的对象,里面有很多东西(包括 google.maps.Map),但在 Firefox 中,我得到一个不太完整的对象,只有一个空的模块对象,以及一个 'gjsload' 和一个 Load 函数。我已经读到 Firefox 和谷歌地图存在问题,但是当我更新 Firefox 时它没有得到修复。 有谁知道我如何让 API 加载到 Firefox 中?

【问题讨论】:

    标签: javascript angularjs google-maps firefox google-maps-api-3


    【解决方案1】:

    原来问题出在我的附加组件上。当我以安全模式(无附加组件)重新启动 Firefox 时,地图工作了。 :) 我在这里找到了答案:"google is not defined" when using Google Maps V3 in Firefox remotely

    【讨论】:

    • 就我而言,它是adblock。只需禁用过滤器然后重新启动。
    猜你喜欢
    • 2015-06-17
    • 1970-01-01
    • 1970-01-01
    • 2013-05-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-21
    • 1970-01-01
    相关资源
    最近更新 更多