Silverlight - Bing 地图控制 - 图钉聚类
我使用 Bing 地图控件并尝试将屏幕上靠近的图钉聚集在一起。 有人知道这个问题的完整解决方案吗? 我只能找到 AJAX 控件的解决方案: http://blogs.msdn.com/b/keithkin/archive/2009/03/07/customizing-pushpin-clustering-with-virtual-earth-map-control-api.aspx
我的方法: 基本上我循环遍历所有项目,确定它们的大小并将它们添加到图层或不添加到图层中。
这主要有效,但如果我想添加 1.000.000 个项目,我会创建 1.000.000 个 UIElements 来获取它们的大小,这真的很慢(并且需要大量内存!)还有其他方法吗?
I use the Bing Maps Control and try to cluster Pushpins which are near together on the screen.
Do somebody know a finished Solution for this ?
I only can find solutions for the AJAX Control:
http://blogs.msdn.com/b/keithkin/archive/2009/03/07/customizing-pushpin-clustering-with-virtual-earth-map-control-api.aspx
My Approach:
Basically i loop through all items, determine the Size of them and add them to the layer or not.
That works principally, but if i want to add 1.000.000 items, i create 1.000.000 UIElements to get the Size of them and that is really slow (And needs much memory!) Is there any other approach ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我个人还没有使用过它,但我发现了一篇关于服务器端集群的三部分文章,对于超过 5000 个数据点,这将是比客户端更好的选择。
http://jkebeck.wordpress.com/?s=cluster
I have not used it yet personally, but I have found a 3 part article concerning Server-Side Clustering, which for over 5000 data points would be the better choice than client side.
http://jkebeck.wordpress.com/?s=cluster
我看过这篇文章 - 也没有尝试过。我需要在 Bing Maps Silverlight 中实现客户端集群,因此看起来很合适
http://www.scottlogic.co.uk/blog/colin/2011/11/pushpin-clustering-with-the-windows-电话-7-bing-map-control/
I've seen this article - also not tried it. I need to implement client-side clustering in Bing Maps Silverlight so looks like a good fit
http://www.scottlogic.co.uk/blog/colin/2011/11/pushpin-clustering-with-the-windows-phone-7-bing-map-control/