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

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

fun [setSprite](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/set-sprite/)(spriteUrl: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html))

Updates the sprite of the map.

#### Parameters

spriteUrl

The URL string pointing to the sprite image and JSON.
