Class DistanceClusterStrategy
Inheritance
System.Object
DistanceClusterStrategy
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 DistanceClusterStrategy : IMapClusterStrategy
Constructors
DistanceClusterStrategy()
Declaration
public DistanceClusterStrategy()
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
GetCoordinatesAverage(IList<IClusterable>)
Gets the coordinates average of all items in the cluster.
Declaration
protected virtual PointG GetCoordinatesAverage(IList<IClusterable> cluster)
Parameters
System.Collections.Generic.IList<IClusterable>
cluster
The cluster. |
Returns
PointG
PointG. |
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. |