New to Telerik UI for WinForms? Start a free 30-day trial

Defines how clusterable map items are grouped into map-cluster visuals.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public interface IMapClusterStrategy

Methods

Groups items using the strategy's clustering rule at the viewport's current zoom level.

C#
List<MapCluster> GenerateClusters(IEnumerable<IClusterable> items, long step, IMapViewport viewport)
Parameters:itemsIEnumerable<IClusterable>

The items to group.

steplong

The grouping distance; built-in strategies interpret it in map pixels at the current zoom level.

viewportIMapViewport

The viewport used to project item locations into map pixels.

Returns:

List<MapCluster>

The clusters produced for the supplied items.