Interface
IClusterItemGenerator

Provides functionality for operations on cluster and original data items.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public interface IClusterItemGenerator

Methods

CreateCluster(Location, object)

Creates cluster at the specified location.

Declaration

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

Parameters

center

Location

Center of the cluster.

item

object

Data item which initialized creation of the cluster.

Returns

ClusterItem

New cluster item.

GetBindingForLocation(object)

Gets binding for location property.

Declaration

cs-api-definition
Binding GetBindingForLocation(object dataItem)

Parameters

dataItem

object

Data item to which is binding source.

Returns

Binding

Binding to location property.

GetLocationFromItem(object)

Gets location from the data item.

Declaration

cs-api-definition
Location GetLocationFromItem(object dataItem)

Parameters

dataItem

object

Data item to get location from.

Returns

Location

Location of the data item.

IsItemInClusterRegion(ClusterItem, object, 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(ClusterItem cluster, object dataItem, int zoomLevel)

Parameters

cluster

ClusterItem

Cluster.

dataItem

object

Data item.

zoomLevel

int

Zoom level.

Returns

bool

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