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

Clustered data source for the information layer. Allows show group of the locations as single pushpin.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class ClusteredDataSource : Freezable

Inheritance: objectClusteredDataSource

Constructors

Initializes a new instance of the ClusteredDataSource class.

C#
public ClusteredDataSource()

Fields

Identifies the ClusterItemGenerator dependency property.

C#
public static readonly DependencyProperty ClusterItemGeneratorProperty

ClusterItemTemplateProperty

DependencyProperty

Identifies the ClusterItemTemplate dependency property.

C#
public static readonly DependencyProperty ClusterItemTemplateProperty

Identifies the GenerateClustersOnZoom dependency property.

C#
public static readonly DependencyProperty GenerateClustersOnZoomProperty

ItemsSourceProperty

DependencyProperty

Identifies the ItemsSource dependency property.

C#
public static readonly DependencyProperty ItemsSourceProperty

ItemTemplateProperty

DependencyProperty

Identifies the ItemTemplate dependency property.

C#
public static readonly DependencyProperty ItemTemplateProperty

Identifies the ItemTemplateSelector dependency property.

C#
public static readonly DependencyProperty ItemTemplateSelectorProperty

Properties

Gets or sets cluster item generator.

C#
public IClusterItemGenerator ClusterItemGenerator { get; set; }

Gets or sets cluster item template.

C#
public DataTemplate ClusterItemTemplate { get; set; }

Gets or sets value which indicates whether clusters should be re-generated when zoom level is changed.

C#
public bool GenerateClustersOnZoom { get; set; }

Gets or sets items source.

C#
public IEnumerable ItemsSource { get; set; }

ItemTemplate

DataTemplate

Gets or sets clustered item template.

C#
public DataTemplate ItemTemplate { get; set; }

ItemTemplateSelector

DataTemplateSelector

Gets or sets template selector.

C#
public DataTemplateSelector ItemTemplateSelector { get; set; }

Methods

Refresh location of the given data item.

C#
public void ArrangeItem(object item)
Parameters:itemobject

Data item.

Collapse cluster.

C#
public void Collapse(ClusterItem cluster)
Parameters:clusterClusterItem

Cluster to collapse.

Collapse cluster which contains given data item.

C#
public void Collapse(object item)
Parameters:itemobject

Data item.

When implemented in a derived class, creates a new instance of the Freezable derived class.

C#
protected override Freezable CreateInstanceCore()
Returns:

Freezable

The new instance.

Expand cluster.

C#
public void Expand(ClusterItem cluster)
Parameters:clusterClusterItem

Cluster to expand.

Expand cluster so its items will not be on their original locations, but in the vertices of the regular polygon.

C#
public void ExpandToPolygon(ClusterItem cluster)
Parameters:clusterClusterItem

Cluster to expand.

Refresh data source.

C#
public void Refresh()
Remarks:

Remove all clusters and regenerate all items.

Move item from one cluster to another.

C#
public ClusterItem RelocateItem(object item, out ClusteredItem clusteredItem)
Parameters:itemobject

Item to relocate.

clusteredItemClusteredItem

Clustered item which corresponds to the given data item.

Returns:

ClusterItem

New cluster.