切换到maps.googleapis.com

时间:2011-10-11 12:42:07

标签: google-maps google-maps-api-3

所以几天前有一篇关于从maps.google.com切换到maps.googleapis.com的博客文章,你可以在这里阅读。

http://googlegeodevelopers.blogspot.com/2011/10/grab-bag-of-maps-api-news.html

作为Google Maps API的使用者,它如何影响我以及我需要做出哪些更改。我知道我只是导入一个脚本文件,如下所示:

<script src="http://maps.google.com/maps/api/js?v=3.5&sensor=true" type="text/javascript"></script>

将上述内容更改为

是否微不足道
<script src="http://maps.googleapis.com/maps/api/js?v=3.5&sensor=true" type="text/javascript"></script>

即使我使用maps.google.com,我的贴图也是从maps.googleapis.com中检索到的,因此我不确定此更改对我有何益处。

提前致谢。

1 个答案:

答案 0 :(得分:6)

转移到maps.googleapis.com的好处是,googleapis.com是一个无cookie的域,因此它更安全,因为没有发送cookie会更快。

如果Google决定302 maps.google.com到maps.googleapis.com

,它还可以避免额外的重定向