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

Provides functionality for operations on cluster and original data items.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public interface IClusterItemGenerator

Derived Classes: ClusterItemGenerator

Methods

Creates cluster at the specified location.

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

Center of the cluster.

itemobject

Data item which initialized creation of the cluster.

Returns:

ClusterItem

New cluster item.

Gets binding for location property.

C#
Binding GetBindingForLocation(object dataItem)
Parameters:dataItemobject

Data item to which is binding source.

Returns:

Binding

Binding to location property.

Gets location from the data item.

C#
Location GetLocationFromItem(object dataItem)
Parameters:dataItemobject

Data item to get location from.

Returns:

Location

Location of the data item.

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

C#
bool IsItemInClusterRegion(ClusterItem cluster, object dataItem, int zoomLevel)
Parameters:clusterClusterItem

Cluster.

dataItemobject

Data item.

zoomLevelint

Zoom level.

Returns:

bool

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