Class
ClusteredDataSource

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:

cs-api-definition
public class ClusteredDataSource : Freezable

Inheritance: objectClusteredDataSource

Constructors

ClusteredDataSource()

Initializes a new instance of the ClusteredDataSource class.

Declaration

cs-api-definition
public ClusteredDataSource()

Fields

ClusterItemGeneratorProperty

Identifies the ClusterItemGenerator dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ClusterItemGeneratorProperty

Field Value

DependencyProperty

ClusterItemTemplateProperty

Identifies the ClusterItemTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ClusterItemTemplateProperty

Field Value

DependencyProperty

GenerateClustersOnZoomProperty

Identifies the GenerateClustersOnZoom dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GenerateClustersOnZoomProperty

Field Value

DependencyProperty

ItemTemplateProperty

Identifies the ItemTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemTemplateProperty

Field Value

DependencyProperty

ItemTemplateSelectorProperty

Identifies the ItemTemplateSelector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemTemplateSelectorProperty

Field Value

DependencyProperty

ItemsSourceProperty

Identifies the ItemsSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemsSourceProperty

Field Value

DependencyProperty

Properties

ClusterItemGenerator

Gets or sets cluster item generator.

Declaration

cs-api-definition
public IClusterItemGenerator ClusterItemGenerator { get; set; }

Property Value

IClusterItemGenerator

ClusterItemTemplate

Gets or sets cluster item template.

Declaration

cs-api-definition
public DataTemplate ClusterItemTemplate { get; set; }

Property Value

DataTemplate

GenerateClustersOnZoom

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

Declaration

cs-api-definition
public bool GenerateClustersOnZoom { get; set; }

Property Value

bool

ItemTemplate

Gets or sets clustered item template.

Declaration

cs-api-definition
public DataTemplate ItemTemplate { get; set; }

Property Value

DataTemplate

ItemTemplateSelector

Gets or sets template selector.

Declaration

cs-api-definition
public DataTemplateSelector ItemTemplateSelector { get; set; }

Property Value

DataTemplateSelector

ItemsSource

Gets or sets items source.

Declaration

cs-api-definition
public IEnumerable ItemsSource { get; set; }

Property Value

IEnumerable

Methods

ArrangeItem(object)

Refresh location of the given data item.

Declaration

cs-api-definition
public void ArrangeItem(object item)

Parameters

item

object

Data item.

Collapse(ClusterItem)

Collapse cluster.

Declaration

cs-api-definition
public void Collapse(ClusterItem cluster)

Parameters

cluster

ClusterItem

Cluster to collapse.

Collapse(object)

Collapse cluster which contains given data item.

Declaration

cs-api-definition
public void Collapse(object item)

Parameters

item

object

Data item.

CreateInstanceCore()

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

Declaration

cs-api-definition
protected override Freezable CreateInstanceCore()

Returns

Freezable

The new instance.

Expand(ClusterItem)

Expand cluster.

Declaration

cs-api-definition
public void Expand(ClusterItem cluster)

Parameters

cluster

ClusterItem

Cluster to expand.

ExpandToPolygon(ClusterItem)

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

Declaration

cs-api-definition
public void ExpandToPolygon(ClusterItem cluster)

Parameters

cluster

ClusterItem

Cluster to expand.

Refresh()

Refresh data source.

Declaration

cs-api-definition
public void Refresh()

Remarks

Remove all clusters and regenerate all items.

RelocateItem(object, out ClusteredItem)

Move item from one cluster to another.

Declaration

cs-api-definition
public ClusterItem RelocateItem(object item, out ClusteredItem clusteredItem)

Parameters

item

object

Item to relocate.

clusteredItem

ClusteredItem

Clustered item which corresponds to the given data item.

Returns

ClusterItem

New cluster.