404对于所有的谷歌地图API V3库未找到错误 [英] 404 Not Found error for all the Google Maps API V3 libraries

查看:184
本文介绍了404对于所有的谷歌地图API V3库未找到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到404 Not Found错误对于所有的谷歌地图API库。

I am getting 404 Not Found error for all the Google Maps API libraries.

例如。 https://开头地图的API -ssl.google.com/maps-api-v3/api/js/21/9/main.js

地图作品,当我建立它通过code,但是当我访问托管网站地图不加载。

The map works, when I build it through code but map does not load when I access the hosted website.

推荐答案

您应该不再使用的https:/ /maps-api-ssl.google.com 访问API。请参见这篇博客

You should no longer use https://maps-api-ssl.google.com to access the API. See this blog post

切换到googleapis.com

看着你们当中的老鹰可能已经发现了我们已经更新了所有我们的文档的建议Maps API的从maps.googleapis.com而非maps.google.com或地图的API-ssl的加载。 google.com 。当从maps.googleapis.com加载,目前执行的Maps API v3的不依赖于饼干与谷歌交换。这提高了该API的两个安全性,并在带宽受限的网络的性能。因此,我们建议所有网站切换到使用maps.googleapis.com。

The eagle eyed amongst you may have spotted that we have updated all of our documentation to recommend that the Maps APIs be loaded from maps.googleapis.com rather than maps.google.com or maps-api-ssl.google.com. When loaded from maps.googleapis.com, the current implementation of the Maps API v3 does not rely on the exchange of cookies with Google. This improves both the security of the API, and the performance on bandwidth constrained networks. We therefore recommend all sites switch to using maps.googleapis.com.

这篇关于404对于所有的谷歌地图API V3库未找到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆