# setFeatures

Geo Map: atomically validate and replace the polygon layer.

Canonical: https://chart.syidax.com/docs/methods/setFeatures/

<a id="definition"></a>

## Definition

```typescript
setFeatures(features?: GeoMapFeatureCollection): Promise<void>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `features` | `GeoMapFeatureCollection` | Optional |

Return type: `Promise<void>`. Call the method after element registration and await its Promise result.

- [GeoMapFeatureCollection](https://chart.syidax.com/docs/types/GeoMapFeatureCollection.md) — Type definition

<a id="related"></a>

## Related charts

- [sy-geo-map](https://chart.syidax.com/docs/components/geo-map.md#method-setFeatures)
