News:

Latest Movie Updates : Cinebuzz.in
Latest Update on Rajini Movie  Enthiran / Endhiran - Rajini - The Robot

Main Menu

Clustering Algorithm

Started by thiruvasagamani, Jan 23, 2009, 08:14 PM

Previous topic - Next topic

thiruvasagamani

Clustering Algorithm

Now that the map data is stored in a hidden layer, we can implement the clustering algorithm. The first thing we want our clustering function to do is to handle the map events that occurred due to the map style changing. If the map style is changed we do not want the function to cluster the data, so we can start out by checking whether the map style was changed and, if so, doing nothing, as shown in Listing 3.
Copy Code

function cluster()
{
   var theStyle = map.GetMapStyle();
   if(mapStyle != theStyle)
   {
      // The style has changed, so just store the current map style
      mapStyle = theStyle;
      return true;
   }
   .
   .
   .
}


Source : MSDN
Thiruvasakamani Karnan