Googlemap api v3比api v2慢吗? [英] Googlemap api v3 slower than api v2?

查看:89
本文介绍了Googlemap api v3比api v2慢吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将旧的googlemap v2代码转换为v3,并且它看起来v3是否比v2慢很多?



我的大部分代码更改只是替换G与google.maps。 (GMarker to google.maps.Marker)



任何提示或技巧如何加快速度? 解决方案可能很简单,只需尝试使用不同版本的v3 API,方法是尝试 v = 3.4 v = 3.5 在加载API的链接中是这样的:

 < script type =text / javascriptsrc =http://maps.google.com/maps/api/js?sensor=false&v=3.5>< /脚本> 

和:

 < script type =text / javascriptsrc =http://maps.google.com/maps/api/js?sensor=false&v=3.4>< / script> 

在我建立的网站上,产品经理觉得Streetview在3.6中表现不佳。当我回到3.5时,他觉得这是一个显着的进步。

I am in the midst of converting old googlemap v2 code to v3 and it looks if v3 is much slower than v2?

Most of my code change is just replacing G with google.maps. (GMarker to google.maps.Marker)

Any tips or tricks how to speed things up??

解决方案

The solution might be as simple as experimenting with different versions of the v3 API by trying v=3.4 and v=3.5 in your links that load the API like so:

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

And:

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

On a site I built, the product manager felt that Streetview in particular was sluggish in 3.6. When I rolled it back to 3.5, he felt that it was a noticeable improvement.

这篇关于Googlemap api v3比api v2慢吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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