Back to Devexpress

ExpandedClusterCircularLayout Class

windowsforms-devexpress-dot-xtramap-46a93112.md

latest2.9 KB
Original Source

ExpandedClusterCircularLayout Class

A layout algorithm that positions clustered items in a circle.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public class ExpandedClusterCircularLayout :
    ExpandedClusterLayoutBase
vb
Public Class ExpandedClusterCircularLayout
    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 to a specified layout. To use a circular layout, assign an ExpandedClusterCircularLayout object to the InteractiveClusterModeBase.ExpandedClusterLayout property.

Use the Radius property to specify the circle radius.

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 ExpandedClusterCircularLayout applies to clustered items:

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

Implements

IExpandedClusterLayout

Inheritance

Object ExpandedClusterLayoutBase ExpandedClusterCircularLayout

See Also

ExpandedClusterCircularLayout Members

DevExpress.XtraMap Namespace