Wishlist 0 ¥0.00

Google地图API被墙问题总结

google地图分三个
1. google.cn的 http

http://ditu.google.cn/maps/api/js
这个不会被墙,且加载的资源都是.cn 的,最好用,但是要求你的域名也是http的
如携程http
http://hotels.ctrip.com/international/bangkok359 能够正常展示
但是无法使用google.maps.places.Autocomplete 地址搜索接口(此接口依然走的google.cn)
2.google.cn 的https

https://ditu.google.cn/maps/api/js
这个js正常但是,资源用的是.com

例如携程的地图如果用https访问的话效果如下
https://hotels.ctrip.com/international/bangkok359 无法正常展示

这里写图片描述
3. google.cn

https://ditu.google.cn/maps/api/js 除非翻墙,否则彻底没戏
总结

彻底放弃google

About Us

Since 1996, our company has been focusing on domain name registration, web hosting, server hosting, website construction, e-commerce and other Internet services, and constantly practicing the concept of "providing enterprise-level solutions and providing personalized service support". As a Dell Authorized Solution Provider, we also provide hardware product solutions associated with the company's services.
 

Contact Us

Address: No. 2, Jingwu Road, Zhengzhou City, Henan Province

Phone: 0086-371-63520088 

QQ:76257322

Website: 800188.com

E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.