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

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

# setRotation

fun [setRotation](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.annotations/-m-t-marker/set-rotation/)(rotation: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), mapViewController: [MTMapViewController](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/))

Sets rotation of the marker.

#### Parameters

rotation

Rotation in degrees.
