【问题标题】:Issue while loading Google maps api V3 in Firefox over https通过 https 在 Firefox 中加载 Google maps api V3 时出现问题
【发布时间】:2014-11-19 13:03:30
【问题描述】:

我正在使用 url 通过 https 加载 google maps api v3 脚本 https://maps.googleapis.com/maps/api/js?sensor=false .地图在 IE 和 chrome 中加载并正常工作。但是在 Firefox 上,地图不起作用,我可以看到错误 TypeError: google.maps.event is undefined .我检查了 google 对象是否使用未定义的检查加载,并且它没有在 Firefox、IE 和 chrome 上正确加载。

可以通过 url 检查相同的行为 https://google-developers.appspot.com/maps/documentation/javascript/examples/full/map-simple .该错误仅发生在 https 而不是 http。在多个网络和多台机器上发现了同样的问题。 正在使用的 Firefox 版本:- 33.1.

我的脚本导入在 head 中,我的 jquery 绑定在 document.ready 中,因此在导入之前执行脚本的机会不大。 即使在 Firefox 安全模式下也会出现相同的行为。

有人可以帮我解决这个问题吗?

【问题讨论】:

标签: javascript jquery firefox google-maps-api-3 https


【解决方案1】:

可能问题出在 ssl 上,您可以尝试从 http 中删除“s”

http://maps.googleapis.com/maps/api/js?sensor=false

【讨论】:

  • 我想通过 https 使用该功能。 Googlemaps 确实支持 https,所以这应该不是问题。此外,如果 https 是一个问题,它在 IE 或 chrome 中将无法工作:)
猜你喜欢
  • 2023-03-22
  • 1970-01-01
  • 2012-02-05
  • 2011-07-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-04-03
  • 2011-06-02
相关资源
最近更新 更多