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

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

# setTerrainAnimationDuration

fun [setTerrainAnimationDuration](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/set-terrain-animation-duration/)(duration: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html))

Set the duration (millisec) of the terrain animation for growing or flattening. Must be positive.

#### Parameters

duration

The duration in milliseconds.
