---
title: "MTStyle.addSprite | Mobile sdk | Mobile sdk android | Android"
description: "addSprite"
---

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

# MTStyle.addSprite

fun [addSprite](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.style/-m-t-style/add-sprite/)(identifier: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), url: [URL](https://developer.android.com/reference/kotlin/java/net/URL.html))

Registers a sprite hosted at the provided URL under the given identifier.

#### Parameters

identifier

Unique name for the sprite resource.

url

Fully qualified URL pointing to the sprite image.
