Silverlight - Bing地图控件 - Pushpins的聚类

时间:2011-03-03 16:55:53

标签: maps bing-maps cluster-analysis markers pushpin

我使用Bing Maps Control并尝试在屏幕上聚集在一起的Pushpins。 有人知道一个完成的解决方案吗? 我只能找到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来获取它们的大小,这真的很慢(并且需要大量内存!)还有其他方法吗?

2 个答案:

答案 0 :(得分:0)

我还没有亲自使用它,但我找到了一篇关于服务器端群集的3篇文章,其中超过5000个数据点将是比客户端更好的选择。

http://jkebeck.wordpress.com/?s=cluster

答案 1 :(得分:0)

我看过这篇文章 - 也没试过。我需要在Bing Maps Silverlight中实现客户端聚类,所以看起来非常合适

http://www.scottlogic.co.uk/blog/colin/2011/11/pushpin-clustering-with-the-windows-phone-7-bing-map-control/