> For the complete documentation index, see [llms.txt](https://developers.felt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.felt.com/js-sdk-api-reference/layers/getlayercalculationparams.md).

# GetLayerCalculationParams

***

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

## Type Parameters

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

## Properties

### layerId

> **layerId**: `string`

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

***

### aggregation

> **aggregation**: [`MultiAggregationConfig`](/js-sdk-api-reference/layers/multiaggregationconfig.md)<`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`](/js-sdk-api-reference/layers/filters.md)

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

***

### boundary?

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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.felt.com/js-sdk-api-reference/layers/getlayercalculationparams.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
