Re: New Virtual Earth Article - Clustering with MS AJAX and C#
I try to keep the cluster example as simple as possible. I use a bitmask to encode the pin types - eg 1 maybe McDonalds, 2 KFC, 4 Pizza hut, 8 Burger King - using a bitmask means you can get something like 7 then means the clust is 1+2+4=7, MD,KFC and PH. I pass these through a bit like the bounds in the csv file, one per clustered pin and store them in the clustered pin js object in the same way as the bounds. When I draw the pin i then select the appropriate icon based on this value.
Hope that helps!
By John (soulsolutions) on
Wednesday, 13 June 2007