API REFERENCE

fitMap

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

Definition

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

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