Aug 11

Written by: Soul Solutions
Friday, 11 August 2006 

johnWeeGo.jpgSo you have a million houses, festivals or gnomes you want to display on VE, but when you display them all at once it is messy and slow. Why not try clustering them?

Without clusters

With clusters

Basically the issue is when you have large number of pins to put on the VE map two problems occur.

1. If you go and add them all it is going to slow down to a crawl or timeout.

2. If you have pins at a close proximity at certain zoom levels they are going to sit on top of each other and be completely unusable.

Read the article

Tags:

18 comment(s) so far...

Re: Clustering a million points on Virtual Earth using AJAX and .Net

Works fine ... except one thing. Somehow the eval function does not work. If i copy/paste the returned Jscript directly in the aspx it works.
Any ideas ?
Thanks
Eddy.
PS. I also added culturespecific logic to address the point,comma problems.

By Eddy Cornet (Belgium) on   Saturday, 26 August 2006

Re: Clustering a million points on Virtual Earth using AJAX and .Net

Hi, I just read your article on clustering points on virtual earth and found it very interesting and would like to implement it to see how it works. i'm having trouble understanding how to get all your code examples to work. i'm a shakey coder at best so it would be helpful if you have a zip file of a functioning example of this clustering in action. i would love to check it out if you do.

please reply to me at nyhtal@yahoo.com.

thank you.

By alan on   Friday, 13 October 2006

Re: Clustering a million points on Virtual Earth using AJAX and .Net

I've sent the source through to you alan. For anybody that is interested please sent me an email. I would really like any feedback and improvements so that i can make a 2nd improved version thats a little more usable.

By John on   Friday, 13 October 2006

java script error on clsutering virtualearth

Javascript shows some error on eval(result).

By chpramodreddy on   Wednesday, 27 December 2006

How to import shape files on virtual earth?

Hi,
i have on query. How to import shape files on virtual earth. i am doing this project using DotNet 2.0,javascript,xml.
please help me. my mail id: chpramodreddy@yahoo.com

By ch pramodreddy on   Wednesday, 3 January 2007

Re: Clustering a million points on Virtual Earth using AJAX and .Net

I've sent you an email.

By John on   Thursday, 4 January 2007

Cool Application! I'm having some trouble with the code

Hello John,

I had a bit of trouble transfereing your code over. I've copy pasted all the code over but I get an runtime error with the web service component.
"VELatLong cannot be serialized because it does not have a parameterless constructor"

By Nindoo on   Wednesday, 31 January 2007

Re: Clustering a million points on Virtual Earth using AJAX and .Net

Thats a nice error Nindoo! If you send me an email - john@soulsolutions.com.au, I can send you the full source code. The plan is to update this article with a V2 written in c# and incorporating some serious refactoring, encoding and on demand popups. The combination works very well. If you want to see it in actions go look at: http://www.lookupandsmile.com.au/what_map.aspx

By John (soulsolutions) on   Wednesday, 31 January 2007

Re: Clustering a million points on Virtual Earth using AJAX and .Net

Your article is really great. Unfortunatley I can't seem to get around the javascript error on the eval function. Any help would be most appreciated.

By Sean on   Saturday, 10 February 2007

Re: Clustering a million points on Virtual Earth using AJAX and .Net

Hi,

Do you have the c# version?

Thanks

thedeskof@gmail.com

By Dwight Hendrickson on   Wednesday, 7 March 2007

Re: Clustering a million points on Virtual Earth using AJAX and .Net

John, its facinating to know that your algorithems is scalable on map.
I was stuck at with same issue where my javascript timed out when loading >1000 pins. I have optimize my javascript to work fast with 1000 pins but I would soon need to scale my apps to accomodate more pins.
I want to try out yore example and would request if you can send me the sourcecode at tigeramit@live.com
-your efforts are much appreciated.

By tigeramit on   Saturday, 1 December 2007

Re: Clustering a million points on Virtual Earth using AJAX and .Net

This concept has been updated a few times, as of December 2007 the latest version is here:
http://www.viawindowslive.com/Articles/VirtualEarth/ClusteringPinsinVirtualEarth6.aspx

By John (soulsolutions) on   Saturday, 1 December 2007

Re: Clustering a million points on Virtual Earth using AJAX and .Net

I've been using Google Earth on a pet project at my disney world site, but I'm using VE on a project at work to plot house prices, so this'll be perfect for that.

Is this one the most up to date example? http://www.viawindowslive.com/Articles/VirtualEarth/ClusteringPinsinVirtualEarth6.aspx

By John on   Tuesday, 7 October 2008

Re: Clustering a million points on Virtual Earth using AJAX and .Net

It is John - I've been meaning to put this up on codeplex so it is easier to follow.

By John (SoulSolutions) on   Monday, 13 October 2008

Re: Clustering a million points on Virtual Earth using AJAX and .Net

Can you send me the files or the complete code??, i tray to use the code but isnt work, thanks a lot !!!

By Joel Tirado on   Friday, 26 March 2010

Re: Clustering a million points on Virtual Earth using AJAX and .Net

Hi,

I am using your "Clustering a million points on Virtual Earth using AJAX and .Net" in my project.
thanks for sharing the valuable code.
when we click on a marker,i am displaying that related markers data in a popup window.
now i got a problem.
when i click on a country in the map, i want to display that country's related data same as above.
but how can i handle that country click? and how would i know which country is clicked?

Please give me a solution for this.

Thanks,
Vasavi

By vasavi on   Thursday, 17 February 2011

Re: Clustering a million points on Virtual Earth using AJAX and .Net

Hi,

I am using your "Clustering a million points on Virtual Earth using AJAX and .Net" in my project.
thanks for sharing the valuable code.
when we click on a marker,i am displaying that related markers data in a popup window.
now i got a problem.
when i click on a country in the map, i want to display that country's related data same as above.
but how can i handle that country click? and how would i know which country is clicked?

Please give me a solution for this.

Thanks,
Vasavi

By vasavi on   Thursday, 17 February 2011

Google maps?

Would this technique work equally well for use with google maps?

Thanks
/David

By David on   Monday, 11 April 2011

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
Copyright © 2002-2013 Soul Solutions Pty Ltd. | Login