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

# createPushpinLayer()

- 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/pushpin/layerFactory.ts

Creates a pushpin layer configuration object.

**Signature:**

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

## Parameters

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

**Returns:**

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

Complete pushpin layer configuration

## Remarks

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