# getMapLayers

An asynchronous method. Check the argument and return types below.

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

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

## Definition

```typescript
getMapLayers(): Promise<GeoMapLayerDetail[]>
```

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

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

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

## Related charts

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