Interface IClusterGenerator
Provides cluster management functionality.
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public interface IClusterGenerator
Properties
Layer
Gets or sets the visualization layer this cluster generator serve for.
Declaration
VisualizationLayer Layer { get; set; }
Property Value
VisualizationLayer
|
Methods
CreateCluster(Location, Object)
Creates cluster at the specified location.
Declaration
ClusterData CreateCluster(Location center, object item)
Parameters
Location
center
Center of the cluster. |
System.Object
item
Data item which initialized creation of the cluster. |
Returns
ClusterData
New cluster item. |
IsItemInClusterRegion(ClusterData, MapObjectInfo, Int32)
Detects whether given original data item belongs to the region of the specified cluster at the specified zoom level.
Declaration
bool IsItemInClusterRegion(ClusterData cluster, MapObjectInfo info, int zoomLevel)
Parameters
ClusterData
cluster
Cluster. |
MapObjectInfo
info
Map object information. |
System.Int32
zoomLevel
Zoom level. |
Returns
System.Boolean
true - if data item belongs to the region of the specified cluster. |
RegenerationNeeded(ClusterData, Int32)
Detects whether cluster should be regenerated for the given zoom level.
Declaration
bool RegenerationNeeded(ClusterData cluster, int zoomLevel)
Parameters
ClusterData
cluster
Cluster. |
System.Int32
zoomLevel
Zoom level. |
Returns
System.Boolean
true - if cluster should be regenerated at the given zoom level, otherwise false. |