---
title: "MTMapViewController.fitBounds | Mobile sdk | Mobile sdk android | Android"
description: "fitBounds"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs-qmgv.pages.dev/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTMapViewController.fitBounds

open override fun [fitBounds](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/fit-bounds/)(bounds: [MTBounds](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.types/-m-t-bounds/), options: [MTFitBoundsOptions](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.options/-m-t-fit-bounds-options/)?)

Fits the viewport so that the supplied bounds are fully visible, applying optional padding or animation overrides.

#### Parameters

bounds

Geographical box that must be visible when the transition finishes.

options

Optional animation and padding configuration that fine-tunes the fitting behaviour.
