Back to Devexpress

ExpandedClusterAdaptiveLayout Class

windowsforms-devexpress-dot-xtramap-dc2b3153.md

latest2.9 KB
Original Source

ExpandedClusterAdaptiveLayout Class

A layout algorithm that positions clustered items based on their count in the cluster.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public class ExpandedClusterAdaptiveLayout :
    ExpandedClusterLayoutBase
vb
Public Class ExpandedClusterAdaptiveLayout
    Inherits ExpandedClusterLayoutBase

Remarks

A user can hover over a cluster to expand it. For more information on how expand clusters, refer to the following section: Allow Users to Expand Clusters.

When the cluster is expanded, nested items that form this cluster are positioned on the map according to a specified layout. To use an adaptive layout, assign an ExpandedClusterAdaptiveLayout object to the InteractiveClusterModeBase.ExpandedClusterLayout property. In the adaptive layout, the map control displays items in a spiral if a cluster contains more than 8 items. Otherwise, items are positioned in a circle.

You can override the GetLocation method to obtain the location of a specific item after the parent cluster is expanded.

Example

The following code allows users to expand clusters. The ExpandedClusterAdaptiveLayout applies to clustered items:

csharp
MouseHoverInteractiveClusterMode interactiveMode = new MouseHoverInteractiveClusterMode();
interactiveMode.ExpandedClusterLayout = new ExpandedClusterAdaptiveLayout();
map.InteractiveClusterMode = interactiveMode;
vb
Dim interactiveMode As MouseHoverInteractiveClusterMode = New MouseHoverInteractiveClusterMode()
interactiveMode.ExpandedClusterLayout = New ExpandedClusterAdaptiveLayout()
map.InteractiveClusterMode = interactiveMode

Implements

IExpandedClusterLayout

Inheritance

Object ExpandedClusterLayoutBase ExpandedClusterAdaptiveLayout

See Also

ExpandedClusterAdaptiveLayout Members

DevExpress.XtraMap Namespace