谷歌地图被多次加载?

时间:2015-04-01 16:50:34

标签: javascript jquery google-maps

在我的页面中:http://sitesdemo.mghospedagem.com/ivam-entregas/3/33209.html

我尝试停用与谷歌地图相关的一些JavaScript,但Chrome控制台仍然指出了同样的错误,说我已经加载了多个Google地图实例。

我收到的错误就是不计算运费,或者无法使用地图,等等等等。

任何人都可以帮我找到我要编辑的javascript的哪一部分来解决这个问题吗?

这是日志:

无法加载资源:服务器响应状态为404(未找到)

main.js:61 Uncaught TypeError: undefined is not a function
main.js:60 You have included the Google Maps API multiple times on this page. This may cause unexpected errors.main.js:60 yl
33209.html:9 Uncaught ReferenceError: J is not defined
VM603:10 Uncaught TypeError: Cannot set property 'geometry' of undefined
33209.html:1 Uncaught ReferenceError: J is not defined
33209.html:9 Uncaught ReferenceError: J is not defined
33209.html:3 Uncaught ReferenceError: J is not defined
33209.html:6 Uncaught ReferenceError: J is not defined
http://sitesdemo.mghospedagem.com/ivam-entregas/3/33209/css Failed to load resource: the server responded with a status of 404 (Not Found)

这里是日志中描述的javascript文件: https://jsfiddle.net/x24e2px2

1 个答案:

答案 0 :(得分:1)

您显然从自己的服务器上加载了一些API文件的副本,将其删除:

<script type="text/javascript" src="33209/js"></script><script src="33209/main.js"></script>