作者smallma009 (Rain老爷)
看板Ajax
标题[问题] 载入google map时网路断线 产生map失败
时间Tue Mar 11 11:25:20 2014
各位大神请教一下
我在A页面先载入google map api v3的js
此时网路突然断线
然後在切换到B页面 在这页面中会产生google map
但是因为断线问题 产生google map失败
之後网路正常 该怎样才能让google map也恢复正常呢?
ps.在console下看到下述的讯息
GET
http://maps.gstatic.com/cat_js/intl/zh_tw/mapfiles/api-3/16/2/%7Bcommon,map%7D.
net::ERR_PROXY_CONNECTION_FAILED %7Bmain,places%7D.js:10
GET
http://maps.gstatic.com/cat_js/intl/zh_tw/mapfiles/api-3/16/2/%7Butil,stats%7D.
net::ERR_PROXY_CONNECTION_FAILED %7Bmain,places%7D.js:10
watchPositionError 0
我有试过重新再载入一次google map的js
google map有时候会出现 但有时还是会没东西
看console说有重覆载入的问题 如下
you have included the Google Maps API multiple times on this page. This may
cause unexpected errors.
感谢各位大神的帮忙 Orz
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.61.97.145
1F:→ arliang:可以把 v3的js嵌在网页里吗?不要用下载方式取得 03/12 10:42