> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# createAreaLayer()

- Package: [@gooddata/sdk-ui-geo](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-geo/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-geo/src/next/layers/area/layerFactory.ts

Creates an area layer configuration object.

**Signature:**

```typescript
export declare function createAreaLayer(layer: Omit<IGeoLayerArea, "type" | "id">, id?: string): IGeoLayerArea;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| layer | Omit&lt;[IGeoLayerArea](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-geo/sdk-ui-geo.igeolayerarea/index.md), "type" \| "id"&gt; | Layer configuration without type and id |
| id | string | _(Optional)_ Optional custom layer id, defaults to "area-layer" |

**Returns:**

[IGeoLayerArea](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-geo/sdk-ui-geo.igeolayerarea/index.md)

Complete area layer configuration

## Remarks

Use this factory to create area layer definitions for GeoChart. The factory ensures proper type and id assignment.
