Class ElementClusterStrategy
Inheritance
System.Object
ElementClusterStrategy
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public class ElementClusterStrategy : IMapClusterStrategy
Constructors
ElementClusterStrategy()
Declaration
public ElementClusterStrategy()
Methods
GenerateClusters(IEnumerable<IClusterable>, Int64, IMapViewport)
Generates the clusters.
Declaration
public virtual List<MapCluster> GenerateClusters(IEnumerable<IClusterable> items, long distance, IMapViewport viewport)
Parameters
System.Collections.Generic.IEnumerable<IClusterable>
items
The items. |
System.Int64
distance
The distance. |
IMapViewport
viewport
The viewport. |
Returns
System.Collections.Generic.List<MapCluster>
List<Cluster>. |
Implements
GetClosestCenter(List<ElementClusterStrategy.ClusterRegion>, PointL)
Gets the closest cluster to the given point.
Declaration
protected virtual ElementClusterStrategy.ClusterRegion GetClosestCenter(List<ElementClusterStrategy.ClusterRegion> nearClusterRegions, PointL point)
Parameters
System.Collections.Generic.List<ElementClusterStrategy.ClusterRegion>
nearClusterRegions
The near cluster regions. |
PointL
point
The point. |
Returns
ElementClusterStrategy.ClusterRegion
ClusterRegion. |
GetSquareDistance(PointL, PointL)
Gets the square distance between two points.
Declaration
protected virtual double GetSquareDistance(PointL location1, PointL location2)
Parameters
PointL
location1
The location1. |
PointL
location2
The location2. |
Returns
System.Double
System.Double. |