Back to Devexpress

MapControl.InteractiveClusterMode Property

windowsforms-devexpress-dot-xtramap-dot-mapcontrol-587c8a06.md

latest4.0 KB
Original Source

MapControl.InteractiveClusterMode Property

Gets or sets the mode that enables cluster interactivity.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
[DefaultValue(null)]
public InteractiveClusterModeBase InteractiveClusterMode { get; set; }
vb
<DefaultValue(Nothing)>
Public Property InteractiveClusterMode As InteractiveClusterModeBase

Property Value

TypeDefaultDescription
InteractiveClusterModeBasenull

Specifies an interactive mode for clusters.

|

Remarks

Users can hover over a cluster to expand it and see all nested map items. To enable this functionality, follow the steps below:

The following example selects an optimal view (circular or spiral) for nested cluster items depending on their count in the cluster:

View Example

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the InteractiveClusterMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-map-aggregate-vector-items-using-a-clusterer/CS/ClustererSample/Form1.cs#L35

csharp
interactiveMode.ExpandedClusterLayout = new ExpandedClusterAdaptiveLayout();
    map.InteractiveClusterMode = interactiveMode;
}

winforms-map-aggregate-vector-items-using-a-clusterer/VB/ClustererSample/Form1.vb#L38

vb
interactiveMode.ExpandedClusterLayout = New ExpandedClusterAdaptiveLayout()
    map.InteractiveClusterMode = interactiveMode
End Sub

See Also

MapControl Class

MapControl Members

DevExpress.XtraMap Namespace