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

> 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.setMaxBounds

open override fun [setMaxBounds](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/set-max-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/)?)

Constrains map interactions to the provided bounds, or removes the constraint when null is supplied.

#### Parameters

bounds

Bounding box limiting map navigation. Use null to clear existing constraints.
