Interface IClusterItemGenerator
Provides functionality for operations on cluster and original data items.
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public interface IClusterItemGenerator
Methods
CreateCluster(Location, Object)
Creates cluster at the specified location.
Declaration
ClusterItem CreateCluster(Location center, object item)
Parameters
Location
center
Center of the cluster. |
System.Object
item
Data item which initialized creation of the cluster. |
Returns
ClusterItem
New cluster item. |
GetBindingForLocation(Object)
Gets binding for location property.
Declaration
Binding GetBindingForLocation(object dataItem)
Parameters
System.Object
dataItem
Data item to which is binding source. |
Returns
System.Windows.Data.Binding
Binding to location property. |
GetLocationFromItem(Object)
Gets location from the data item.
Declaration
Location GetLocationFromItem(object dataItem)
Parameters
System.Object
dataItem
Data item to get location from. |
Returns
Location
Location of the data item. |
IsItemInClusterRegion(ClusterItem, Object, Int32)
Detects whether given original data item belongs to the region of the specified cluster at the specified zoom level.
Declaration
bool IsItemInClusterRegion(ClusterItem cluster, object dataItem, int zoomLevel)
Parameters
ClusterItem
cluster
Cluster. |
System.Object
dataItem
Data item. |
System.Int32
zoomLevel
Zoom level. |
Returns
System.Boolean
true - if data item belongs to the region of the specified cluster. |