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

# MTMapViewController.fitBounds

open override fun [fitBounds](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/fit-bounds/)(bounds: [MTBounds](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.types/-m-t-bounds/), options: [MTFitBoundsOptions](https://docs.maptiler.com/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.
