Interface
IClusterGenerator

Provides cluster management functionality.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public interface IClusterGenerator

Properties

Layer

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

Declaration

cs-api-definition
VisualizationLayer Layer { get; set; }

Property Value

VisualizationLayer

Methods

CreateCluster(Location, object)

Creates cluster at the specified location.

Declaration

cs-api-definition
ClusterData CreateCluster(Location center, object item)

Parameters

center

Location

Center of the cluster.

item

object

Data item which initialized creation of the cluster.

Returns

ClusterData

New cluster item.

IsItemInClusterRegion(ClusterData, MapObjectInfo, int)

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

Declaration

cs-api-definition
bool IsItemInClusterRegion(ClusterData cluster, MapObjectInfo info, int zoomLevel)

Parameters

cluster

ClusterData

Cluster.

info

MapObjectInfo

Map object information.

zoomLevel

int

Zoom level.

Returns

bool

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

RegenerationNeeded(ClusterData, int)

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

Declaration

cs-api-definition
bool RegenerationNeeded(ClusterData cluster, int zoomLevel)

Parameters

cluster

ClusterData

Cluster.

zoomLevel

int

Zoom level.

Returns

bool

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