---
title: "limitPitch | Mobile sdk | Mobile sdk android | Android"
description: "limitPitch"
---

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

# limitPitch

fun [limitPitch](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.helpers/-m-t-pitch-limit-helper/limit-pitch/)(controller: [MTMapViewController](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/), minPitch: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 0.0, maxPitch: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 85.0)

Easily limits the pitch of the map.

#### Parameters

controller

The map view controller to apply the limits to.

minPitch

The minimum pitch limit (0 to 85 degrees). Defaults to 0.0.

maxPitch

The maximum pitch limit (0 to 180 degrees). Defaults to 85.0.
