MTStyleSprite

@Serializable
data class MTStyleSprite(val id: String = "default", val url: String)

Represents a sprite defined in a map style.

Constructors

constructor(id: String = "default", url: String)

Properties

val id: String

The identifier of the sprite. Default is "default" for string-based sprites.

val url: String

The URL of the sprite.

Functions

fun getVariantUrls(scale: Int = 1): List<String>

Returns the URLs for the different scale variants of the sprite.