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

# MTMapViewController.addSprite

fun [addSprite](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/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 resource that can be referenced from style layers.

#### Parameters

identifier

Unique identifier for the sprite.

url

Fully qualified URL to the sprite image.
