The parameters for calculating a single aggregate value for a layer, passed to the LayersController.getAggregates method.
T extends AggregationMethod | "count"
T
AggregationMethod
"count"
layerId: string
string
The ID of the layer to calculate an aggregate value for.
aggregation: MultiAggregationConfig<T>
MultiAggregationConfig
Specifies how to aggregate values within each category or bin. When omitted, features are counted. When specified, the chosen calculation (avg, sum, etc.) is performed on the specified attribute.
optional filters: Filters
optional
Filters
Attribute filters for the features to include when calculating the aggregate value.
optional boundary: GeometryFilter
GeometryFilter
The spatial boundary for the features to include when calculating the aggregate value.
Last updated 9 months ago
Was this helpful?