Default Aggregation Styles

Tasks that have the defaultAggregationStyles property set to true in their context parameter will set the default aggregations for the resulting layer. If this parameter is set to true, default aggregations include square, pointy triangle, flat triangle, pointy hexagon, flat hexagon, and geohash. All aggregation styles are supported using wkid 4326 (WGS_1984).

When you create a map service from the resulting feature service, you can select the aggregation style using ArcGIS GeoEvent Server or a custom app. The syntax of defaultAggregationStyles is illustrated below.

The following is the default aggregation styles syntax:

1
"defaultAggregationStyles": true | false

The default aggregation style is supported for point, line and polygon features, and is useful for large datasets, if you don't want to view all the raw features at once.

You can set the defaultAggregationStyles as well as other context parameters, as shown below. The following is the default aggregation styles, extent, and processSR example:

1
2
3
4
5
6
7
8
9
10
11
12
13
"context" : {
  "defaultAggregationStyles": true,
  "extent": {
    "xmin": -122.68,
    "ymin": 45.53,
    "xmax": -122.45,
    "ymax": 45.6,
    "spatialReference": {
      "wkid": 4326
    }
  },
  "processSR" : {"wkid" : 3857}
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close