# GetLayerCalculationParams

***

The parameters for calculating a single aggregate value for a layer, passed to\
the [LayersController.getAggregates](https://developers.felt.com/js-sdk-api-reference/layerscontroller#getaggregates) method.

## Type Parameters

| Type Parameter                                                                                                              |
| --------------------------------------------------------------------------------------------------------------------------- |
| `T` *extends* [`AggregationMethod`](https://developers.felt.com/js-sdk-api-reference/layers/aggregationmethod) \| `"count"` |

## Properties

### layerId

> **layerId**: `string`

The ID of the layer to calculate an aggregate value for.

***

### aggregation

> **aggregation**: [`MultiAggregationConfig`](https://developers.felt.com/js-sdk-api-reference/layers/multiaggregationconfig)<`T`>

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.

***

### filters?

> `optional` **filters**: [`Filters`](https://developers.felt.com/js-sdk-api-reference/layers/filters)

Attribute filters for the features to include when calculating the aggregate value.

***

### boundary?

> `optional` **boundary**: [`GeometryFilter`](https://developers.felt.com/js-sdk-api-reference/layers/geometryfilter)

The spatial boundary for the features to include when calculating the aggregate value.
