Default cluster generator. Group data items using distance between 2 locations in degrees.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class DefaultClusterGenerator : IClusterGenerator
Inheritance: objectDefaultClusterGenerator
Implements:
Constructors
Initializes a new instance of the DefaultClusterGenerator class.
public DefaultClusterGenerator()
Properties
Gets or sets value which indicates whether cluster should be automatically expanded when it contains 1 data item only.
public bool AutoExpandWhenSingle { get; set; }
Gets or sets array of the doubles which define close distance between 2 locations in degrees for every zoom level.
public double[] CloseDistance { get; set; }
If distance between 2 locations for the given zoom level is less than value in the array, then we consider these 2 locations as close ones. Close locations should be combined into 1 cluster.
Gets or sets value which indicates whether cluster should be deleted if it is empty.
public bool DeleteWhenEmpty { get; set; }
Gets or sets radius (in pixels) which will be used to calculate coordinates of the items when cluster is expanded to the polygon vertices.
public double ExpandRadius { get; set; }
Indicates whether expanded cluster should be hidden.
public bool HideExpanded { get; set; }
Information layer this map canvas belongs to.
public VisualizationLayer Layer { get; set; }
Implements:
Methods
Detects whether given original data item belongs to the region of the specified cluster.
public virtual bool IsItemInClusterRegion(ClusterData cluster, MapObjectInfo info, int zoomLevel)
Cluster.
infoMapObjectInfoMap object information.
zoomLevelintZoom level.
Returns:true - if data item belongs to the region of the specified cluster.
Implements:
Detects whether cluster should be regenerated for the given zoom level.
public virtual bool RegenerationNeeded(ClusterData cluster, int zoomLevel)
Cluster.
zoomLevelintZoom level.
Returns:true - if cluster should be regenerated at the given zoom level, otherwise false.
Implements: