New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public class DistanceClusterStrategy : IMapClusterStrategy

Inheritance: objectDistanceClusterStrategy

Implements: IMapClusterStrategy

Constructors

C#
public DistanceClusterStrategy()

Methods

Generates the clusters.

C#
public virtual List<MapCluster> GenerateClusters(IEnumerable<IClusterable> items, long distance, IMapViewport viewport)
Parameters:itemsIEnumerable<IClusterable>

The items.

distancelong

The distance.

viewportIMapViewport

The viewport.

Returns:

List<MapCluster>

List<Cluster>.

Implements: IMapClusterStrategy.GenerateClusters(IEnumerable<IClusterable>, long, IMapViewport)

Gets the coordinates average of all items in the cluster.

C#
protected virtual PointG GetCoordinatesAverage(IList<IClusterable> cluster)
Parameters:clusterIList<IClusterable>

The cluster.

Returns:

PointG

PointG.

Gets the square distance between two points.

C#
protected virtual double GetSquareDistance(PointL location1, PointL location2)
Parameters:location1PointL

The location1.

location2PointL

The location2.

Returns:

double

System.Double.