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:
public class ClusteredDataSource : Freezable
Inheritance: objectClusteredDataSource
Constructors
Initializes a new instance of the ClusteredDataSource class.
public ClusteredDataSource()
Fields
ClusterItemGeneratorProperty
DependencyProperty
Identifies the ClusterItemGenerator dependency property.
public static readonly DependencyProperty ClusterItemGeneratorProperty
ClusterItemTemplateProperty
DependencyProperty
Identifies the ClusterItemTemplate dependency property.
public static readonly DependencyProperty ClusterItemTemplateProperty
GenerateClustersOnZoomProperty
DependencyProperty
Identifies the GenerateClustersOnZoom dependency property.
public static readonly DependencyProperty GenerateClustersOnZoomProperty
ItemsSourceProperty
DependencyProperty
Identifies the ItemsSource dependency property.
public static readonly DependencyProperty ItemsSourceProperty
ItemTemplateProperty
DependencyProperty
Identifies the ItemTemplate dependency property.
public static readonly DependencyProperty ItemTemplateProperty
ItemTemplateSelectorProperty
DependencyProperty
Identifies the ItemTemplateSelector dependency property.
public static readonly DependencyProperty ItemTemplateSelectorProperty
Properties
Gets or sets cluster item generator.
public IClusterItemGenerator ClusterItemGenerator { get; set; }
ClusterItemTemplate
DataTemplate
Gets or sets cluster item template.
public DataTemplate ClusterItemTemplate { get; set; }
Gets or sets value which indicates whether clusters should be re-generated when zoom level is changed.
public bool GenerateClustersOnZoom { get; set; }
Gets or sets items source.
public IEnumerable ItemsSource { get; set; }
ItemTemplate
DataTemplate
Gets or sets clustered item template.
public DataTemplate ItemTemplate { get; set; }
ItemTemplateSelector
DataTemplateSelector
Gets or sets template selector.
public DataTemplateSelector ItemTemplateSelector { get; set; }
Methods
Refresh location of the given data item.
Collapse cluster.
Collapse cluster which contains given data item.
When implemented in a derived class, creates a new instance of the Freezable derived class.
protected override Freezable CreateInstanceCore()
Freezable
The new instance.
Expand cluster.
Expand cluster so its items will not be on their original locations, but in the vertices of the regular polygon.
Refresh data source.
public void Refresh()
Remove all clusters and regenerate all items.
Move item from one cluster to another.
public ClusterItem RelocateItem(object item, out ClusteredItem clusteredItem)
Item to relocate.
clusteredItemClusteredItemClustered item which corresponds to the given data item.
Returns:New cluster.