切换到maps.googleapis.com

use*_*670 3 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>
Run Code Online (Sandbox Code Playgroud)

改变上面的那个是微不足道的

<script src="http://maps.googleapis.com/maps/api/js?v=3.5&sensor=true" type="text/javascript"></script>
Run Code Online (Sandbox Code Playgroud)

即使我使用maps.google.com,我的贴图也是从maps.googleapis.com中检索到的,所以我不确定这种改变对我有何益处.

提前致谢.

ska*_*arE 6

迁移到maps.googleapis.com的好处是googleapis.com是一个无cookie的域,所以它更安全,并且会更快,因为没有发送cookie.

如果Google决定将maps.google.com 302映射到maps.googleapis.com,它还可以避免额外的重定向