Jose Pedro Abalos
Jose Pedro Abalos

Reputation: 53

Cluster pushpins Bing Maps AJAX Control v7 WP7

I have a Bing Maps AJAX Control for WP7, v7 (Microsoft.Phone.Controls.Maps.Map), with several pushpins that I want to cluster.

The only references I've found so far mention the VEShapeLayer.SetClusterConfiguration method, such as the one mentioned in the official Microsoft Documentation. However, looking at Hanne's Virtual Earth it appears these classes have been replaced since version 6.3, thus rendering the SetClusterConfiguration method useless.

How can I cluster pushpins in the v7 of the Bing Maps AJAX Control? The only reference I've found so far is the Bing Maps blog, but any other pointers (or perhaps a library that already implements it) would be GREATLY welcome :D

Thanks for your time! :D

Upvotes: 0

Views: 2703

Answers (3)

lugolabs
lugolabs

Reputation: 589

I have a lightweight library at https://github.com/rtsinani/PinClusterer, inspired by Google Maps clusterer. You can see a demo here http://lugolabs.com/projects/pinclusterer.

Upvotes: 0

YoYoMyo
YoYoMyo

Reputation: 904

The Interactive SDK has a demonstration of client side clustering

http://www.bingmapsportal.com/ISDK/AjaxV7#LoadingDynamicModule1

note: run register module -> load module -> enable clustering

Also, did you download the code here?

Notice it is V7. I got the code from this blog post.

Don't worry about writing your own cluster algorithm yet. The default cluster algorithm in the given code is good enough for the start.

Upvotes: 1

Claus Jørgensen
Claus Jørgensen

Reputation: 26347

You'll have to manually calculate the clustering. How to do so depends purely on your data source.

And I haven't seen any generic libraries for it yet.

Upvotes: 1

Related Questions