Class ClusteringFeatureReduction
Method for aggregating and summarizing features in a point FeatureLayer or point graphics in a GraphicsOverlay in dynamic rendering mode (FeatureRenderingMode.Dynamic, or GraphicsRenderingMode.Dynamic).
Namespace: Esri.ArcGISRuntime.Reduction
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class ClusteringFeatureReduction : AggregationFeatureReduction, INotifyPropertyChanged, IPopupSource
Remarks
Clustering is configured via the FeatureReduction property of the FeatureLayer or the FeatureReduction of the GraphicsOverlay.
Feature clustering allows you to visually represent large numbers of point geoelements in relatively small areas by aggregating them into clusters. Each cluster of two or more points is represented with an AggregateGeoElement that has its own symbol. If a point feature is not clustered, it continues to draw as an individual feature using the layer's renderer. As a user navigates the map, clusters update dynamically depending on the map's scale and extent. Feature clustering only applies to layers with point geometries in a 2D map. It does not apply to layers with polyline and polygon geometries and is not supported in 3D. In such unsupported scenarios, the original features or graphics are drawn and in the case of FeatureLayer, aLayerViewState is bubbled up indicating the appropriate error. The symbol for the cluster is determined by the renderer passed to ClusteringFeatureReduction and cluster symbol size is always determined by the MinSymbolSize and MaxSymbolSize properties. At present, this API does not support configuring cluster symbol size from another AggregateField.
Constructors
Name | Description |
---|---|
ClusteringFeatureReduction(Renderer) | Initializes a new instance of the ClusteringFeatureReduction class using the given renderer and default values for min size, max size and radius of the cluster. |
Properties
Name | Description |
---|---|
MaxSymbolSize | Gets or sets the symbol size of the largest cluster in device-independent pixels. The default value is 70. |
MinSymbolSize | Gets or sets the symbol size of the smallest cluster in device-independent pixels. The default value is 12. |
Radius | Gets or sets the radius in device-independent pixels of the area in which multiple points will be grouped and visualized as a single cluster. The default value is 60. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 200.3 - 200.5 |
.NET | 200.3 - 200.5 |
.NET Windows | 200.3 - 200.5 |
.NET Android | 200.3 - 200.5 |
.NET iOS | 200.3 - 200.5 |
.NET Framework | 200.3 - 200.5 |
UWP | 200.3 - 200.5 |