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

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

# MTMapViewController.rotateTo

open override fun [rotateTo](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/rotate-to/)(bearing: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), options: [MTAnimationOptions](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.options/-m-t-animation-options/)?)

Rotates the map to a given bearing, with an animated transition.

#### Parameters

bearing

The desired bearing in degrees.

options

Animation options.
