InterfaceIClusterGenerator
Provides cluster management functionality.
Definition
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
Methods
CreateCluster(Location, object)
Creates cluster at the specified location.
Declaration
ClusterData CreateCluster(Location center, object item)
Parameters
center
Center of the cluster.
item
Data item which initialized creation of the cluster.
Returns
New cluster item.
IsItemInClusterRegion(ClusterData, MapObjectInfo, int)
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
cluster
Cluster.
info
Map object information.
zoomLevel
Zoom level.
Returns
true - if data item belongs to the region of the specified cluster.
RegenerationNeeded(ClusterData, int)
Detects whether cluster should be regenerated for the given zoom level.
Declaration
bool RegenerationNeeded(ClusterData cluster, int zoomLevel)
Parameters
cluster
Cluster.
zoomLevel
Zoom level.
Returns
true - if cluster should be regenerated at the given zoom level, otherwise false.