Class ClusteredDataSource
Clustered data source for the information layer. Allows show group of the locations as single pushpin.
Inheritance
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class ClusteredDataSource : Freezable
Constructors
ClusteredDataSource()
Initializes a new instance of the ClusteredDataSource class.
Declaration
public ClusteredDataSource()
Fields
ClusterItemGeneratorProperty
Identifies the ClusterItemGenerator dependency property.
Declaration
public static readonly DependencyProperty ClusterItemGeneratorProperty
Field Value
System.Windows.DependencyProperty
|
ClusterItemTemplateProperty
Identifies the ClusterItemTemplate dependency property.
Declaration
public static readonly DependencyProperty ClusterItemTemplateProperty
Field Value
System.Windows.DependencyProperty
|
GenerateClustersOnZoomProperty
Identifies the GenerateClustersOnZoom dependency property.
Declaration
public static readonly DependencyProperty GenerateClustersOnZoomProperty
Field Value
System.Windows.DependencyProperty
|
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
System.Windows.DependencyProperty
|
ItemTemplateProperty
Identifies the ItemTemplate dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateProperty
Field Value
System.Windows.DependencyProperty
|
ItemTemplateSelectorProperty
Identifies the ItemTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateSelectorProperty
Field Value
System.Windows.DependencyProperty
|
Properties
ClusterItemGenerator
Gets or sets cluster item generator.
Declaration
public IClusterItemGenerator ClusterItemGenerator { get; set; }
Property Value
IClusterItemGenerator
|
ClusterItemTemplate
Gets or sets cluster item template.
Declaration
public DataTemplate ClusterItemTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
GenerateClustersOnZoom
Gets or sets value which indicates whether clusters should be re-generated when zoom level is changed.
Declaration
public bool GenerateClustersOnZoom { get; set; }
Property Value
System.Boolean
|
ItemsSource
Gets or sets items source.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
System.Collections.IEnumerable
|
ItemTemplate
Gets or sets clustered item template.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
ItemTemplateSelector
Gets or sets template selector.
Declaration
public DataTemplateSelector ItemTemplateSelector { get; set; }
Property Value
System.Windows.Controls.DataTemplateSelector
|
Methods
ArrangeItem(Object)
Refresh location of the given data item.
Declaration
public void ArrangeItem(object item)
Parameters
System.Object
item
Data item. |
Collapse(Object)
Collapse cluster which contains given data item.
Declaration
public void Collapse(object item)
Parameters
System.Object
item
Data item. |
Collapse(ClusterItem)
Collapse cluster.
Declaration
public void Collapse(ClusterItem cluster)
Parameters
ClusterItem
cluster
Cluster to collapse. |
CreateInstanceCore()
When implemented in a derived class, creates a new instance of the Freezable derived class.
Declaration
protected override Freezable CreateInstanceCore()
Returns
System.Windows.Freezable
The new instance. |
Expand(ClusterItem)
Expand cluster.
Declaration
public void Expand(ClusterItem cluster)
Parameters
ClusterItem
cluster
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
public void ExpandToPolygon(ClusterItem cluster)
Parameters
ClusterItem
cluster
Cluster to expand. |
Refresh()
Refresh data source.
Declaration
public void Refresh()
Remarks
Remove all clusters and regenerate all items.
RelocateItem(Object, out ClusteredItem)
Move item from one cluster to another.
Declaration
public ClusterItem RelocateItem(object item, out ClusteredItem clusteredItem)
Parameters
System.Object
item
Item to relocate. |
ClusteredItem
clusteredItem
Clustered item which corresponds to the given data item. |
Returns
ClusterItem
New cluster. |