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

Provides cluster management functionality.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public interface IClusterGenerator

Derived Classes: DefaultClusterGenerator

Properties

Gets or sets the visualization layer this cluster generator serve for.

C#
VisualizationLayer Layer { get; set; }

Methods

Creates cluster at the specified location.

C#
ClusterData CreateCluster(Location center, object item)
Parameters:centerLocation

Center of the cluster.

itemobject

Data item which initialized creation of the cluster.

Returns:

ClusterData

New cluster item.

Detects whether given original data item belongs to the region of the specified cluster at the specified zoom level.

C#
bool IsItemInClusterRegion(ClusterData cluster, MapObjectInfo info, int zoomLevel)
Parameters:clusterClusterData

Cluster.

infoMapObjectInfo

Map object information.

zoomLevelint

Zoom level.

Returns:

bool

true - if data item belongs to the region of the specified cluster.

Detects whether cluster should be regenerated for the given zoom level.

C#
bool RegenerationNeeded(ClusterData cluster, int zoomLevel)
Parameters:clusterClusterData

Cluster.

zoomLevelint

Zoom level.

Returns:

bool

true - if cluster should be regenerated at the given zoom level, otherwise false.