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 ElementClusterStrategy : IMapClusterStrategy

Inheritance: objectElementClusterStrategy

Implements: IMapClusterStrategy

Constructors

C#
public ElementClusterStrategy()

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 closest cluster to the given point.

C#
protected virtual ElementClusterStrategy.ClusterRegion GetClosestCenter(List<ElementClusterStrategy.ClusterRegion> nearClusterRegions, PointL point)
Parameters:nearClusterRegionsList<ElementClusterStrategy.ClusterRegion>

The near cluster regions.

pointPointL

The point.

Returns:

ElementClusterStrategy.ClusterRegion

ClusterRegion.

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.