Feature Reduction
- Last UpdatedApr 23, 2024
- 1 minute read
Describes options for reducing the number of features in the view by aggregating them to clusters.
Reference link: https://developers.arcgis.com/web-map-specification/objects/featureReduction_cluster/
The following table provides the specific configurable options available for featuresReduction:
|
Property |
Type |
Description |
|||
|---|---|---|---|---|---|
|
clusterMaxSize [Optional] |
Number |
Defines the size of the largest cluster, in screen units (points). Sets the minimum distance between clusters. |
|||
|
clusterRadius [Optional] |
Number |
Defines the distance in points within which features will be clustered together. |
|||
|
drawingInfo [Optional] |
drawingInfo |
Provides drawing and labeling information for the clusters. For more information, refer DrawingInfo. |
|||
|
fields [Optional] |
Field[] |
Aggregates fields to use in cluster renderer, popup, and labels. A field named cluster_count is automatically generated with the number of features in the cluster. Field. Defines an aggregate field for use in clusters. Below are the configurable options.
|
|||
|
type |
cluster |
Defines the type of feature reduction. |
|||
|
zoomOnClick [Optional] |
Boolean |
Zooms the map to the clustered features extent on click. |