Back to Devexpress

ExpandedClusterSourceLocationLayout Class

windowsforms-devexpress-dot-xtramap-cd7e6d50.md

latest3.0 KB
Original Source

ExpandedClusterSourceLocationLayout Class

A layout algorithm that positions clustered items according to their actual locations (cartesian or geo coordinates).

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public class ExpandedClusterSourceLocationLayout :
    ExpandedClusterLayoutBase
vb
Public Class ExpandedClusterSourceLocationLayout
    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 position clustered items according to their actual coordinates (cartesian or geo), assign an ExpandedClusterSourceLocationLayout object to the InteractiveClusterModeBase.ExpandedClusterLayout property.

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

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

Implements

IExpandedClusterLayout

Inheritance

Object ExpandedClusterLayoutBase ExpandedClusterSourceLocationLayout

See Also

ExpandedClusterSourceLocationLayout Members

DevExpress.XtraMap Namespace