Google使用多段线和标记来映射性能 [英] Google maps perfomance with polylines and markers

查看:71
本文介绍了Google使用多段线和标记来映射性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正处在决策点 - 哪些技术将用于我们的高负荷飞行优惠地图。
有简单的测试 - http://buruki.com/gmap 但如果我选择伦敦或莫斯科(他们有大约200-300个航班目的地)大多数浏览器(firefox 3.5和IE肯定:-))都非常缓慢。
现在有简单的标记和简单的折线,MarkerManager或其他东西都没有用。

We are on decision point - which technology will be used for our highly loaded flight deals map. There is simple test - http://buruki.com/gmap but if i choose London or Moscow( they have ~200-300 flights destinations) most of browsers( firefox 3.5 and IE for sure :-) ) are extremely slow. Now there are simple markers and simple polylines, MarkerManager or other things are not use.

我想问一下gmap专家 - 是否有可能在地图上有200-300多段多义线和标记,几乎可以立即做出响应。如果是 - 现有项目的实例。

I would like to ask gmap experts - is it possible to have almost immediate response time with ~200-300 polylines and markers on map. If yes - any live examples from existing projects.

我们已经有 silverlight http://buruki.com/map )的实现,它有很大的速度和很大的缺点:-( - 插件是必需的,linux用户超出了bossiness。是否有可能达到相同的速度(或关闭)作为silverlight has gmaps?

PS we already have silverlight( http://buruki.com/map ) implementation, it has great speed and great disadvantages :-( - plugin is required, linux users are out of bossiness. Is it possible to achieve same speed(or close) as silverlight has with gmaps?

推荐答案

答案:是的,不仅可以用于200-300,还可以添加500以上。我在一家航空公司网站上工作,就像你和我在5毫秒内用谷歌地图V3连接了不同的标记和多段线。我制作了一个JavaScript文件和一个数组,用于循环放置一个标记图像与lat长(这些数据来自一个数组),直到现在没有任何错误出现在那个和每一个重数据工作正常。谢谢

Answer : yes it is possible not only for 200-300 but also you can add more then 500. I worked on one of the airline site same like your and i attached different markers and polyline more then 200 within a 5 milisecond with google map V3. I made an javascript file for that and an array for whole data with lat long after that i used for loop for placing a marker images with lat long (which data is comes from an array). Till now no any bug appear in that and every thing with heavy data working fine. thanks

这篇关于Google使用多段线和标记来映射性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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