Googlemap api v3 slower than api v2?

巧了我就是萌 提交于 2019-12-04 11:12:30

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.

Don't use it unless you really need it. Never change a running system. Maybe you want to write a better marker solution with a better clustering (spatial index, quadtree, heatmap)? I.e. Google's fusion table doesn't support a spatial index. You want to look for Nick's spatial index hilbert curve quadtree blog.

My problem probably was with using FireBug - then the V3 api is loading slower than V2. Also, switching between satellite and normal map makes slow fade effect when FireBug is on.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!