# fitMap

Fit current point/feature geometry with a uniform scale. Empty candidates leave the view unchanged.

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

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

## Definition

```typescript
fitMap(options?: GeoMapFitOptions): Promise<GeoMapFitDetail|null>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `options` | `GeoMapFitOptions` | Optional |

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

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

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

## Related charts

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