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

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

# setLayerZoomRangeAwait

suspend fun [setLayerZoomRangeAwait](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.style/-m-t-style/set-layer-zoom-range-await/)(layerId: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), minzoom: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), maxzoom: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html))

Sets the zoom levels at which the layer is visible.

#### Parameters

layerId

The ID of the layer to update.

minzoom

The minimum zoom level (inclusive).

maxzoom

The maximum zoom level (exclusive).
