MapCluster
Represents grouped map items with a count-labeled marker positioned at the cluster location.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapCluster : MapPathBasedVisualElement, IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement
Inheritance: objectMapVisualElementMapPathBasedVisualElementMapCluster
Implements:
Inherited Members
Constructors
Initializes a new instance of the MapCluster class.
public MapCluster()
Properties
Gets the clustered items.
public List<IClusterable> ClusteredItems { get; }
The clustered items.
Gets whether the cluster marker is outline-only; clusters use a filled marker.
protected override bool IsOutline { get; }
Overrides:
Gets or sets the pixel padding around the centered item count when sizing the cluster marker; the default is five pixels on each side.
public Padding Padding { get; set; }
Gets the assigned tooltip, or the single clustered item's tooltip when no cluster tooltip is set.
public override string ToolTipText { get; set; }
Overrides:
Methods
Creates a centered ellipse sized to fit the cluster count and configured padding.
protected override MapVisualElementInfo CreateVisualElementInfo(IMapViewport viewport)
The viewport used to project the cluster location.
Returns:The path and projected offset used to render the marker.
Overrides:
Gets the items bounding rectangle.
Delegates hit testing to the sole clustered map visual element, or tests the marker for a multi-item cluster.
public override bool HitTest(PointG pointG, PointL pointL, IMapViewport viewport)
The geographic point being tested.
pointLPointLThe map-pixel point being tested.
viewportIMapViewportThe viewport used for projection and wraparound.
Returns:true if the tested element contains the point; otherwise, false.
Overrides:
Draws the cluster marker, its item count, and each visible horizontal wraparound copy.
public override void Paint(IGraphics graphics, IMapViewport viewport)
The graphics context used for drawing.
viewportIMapViewportThe viewport that supplies pan, zoom, and wraparound information.
Overrides:
Forwards viewport updates to the sole clustered map visual element, when present, and then updates the cluster marker.
public override void ViewportChanged(IMapViewport viewport, ViewportChangeAction action)
The updated viewport.
actionViewportChangeActionThe viewport changes to process.
Overrides: