Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

GISMapApp

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.

name (String)

A unique name identifying the aggregate field.

onStatisticField (String)

A field to aggregate based on a given statistic type.

statisticType (statisticType)

Defines the statistic method for aggregating data in the onStatisticField.

  • Values: "max" | "min" | "sum" | "var" | "avg" | "count" | "stddev"

type

cluster

Defines the type of feature reduction.

zoomOnClick [Optional]

Boolean

Zooms the map to the clustered features extent on click.

Related Links
TitleResults for “How to create a CRG?”Also Available in