ClassElementClusterStrategy
Class
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
cs-api-definition
public class ElementClusterStrategy : IMapClusterStrategy
Inheritance: objectElementClusterStrategy
Implements:
Constructors
ElementClusterStrategy()
Declaration
cs-api-definition
public ElementClusterStrategy()
Methods
GenerateClusters(IEnumerable<IClusterable>, long, IMapViewport)
Generates the clusters.
Declaration
cs-api-definition
public virtual List<MapCluster> GenerateClusters(IEnumerable<IClusterable> items, long distance, IMapViewport viewport)
Parameters
items
IEnumerable<IClusterable>
The items.
distance
The distance.
viewport
The viewport.
Returns
List<MapCluster>
List<Cluster>.
Implements
GetClosestCenter(List<ClusterRegion>, PointL)
Gets the closest cluster to the given point.
Declaration
cs-api-definition
protected virtual ElementClusterStrategy.ClusterRegion GetClosestCenter(List<ElementClusterStrategy.ClusterRegion> nearClusterRegions, PointL point)
Parameters
nearClusterRegions
List<ElementClusterStrategy.ClusterRegion>
The near cluster regions.
point
The point.
Returns
ElementClusterStrategy.ClusterRegion
ClusterRegion.
GetSquareDistance(PointL, PointL)
Gets the square distance between two points.