addImage

fun addImage(identifier: String, image: Bitmap, options: MTAddImageOptions? = null)

Registers an image asset that can be referenced from the style.

Parameters

identifier

Unique name for the image in the style registry.

image

Bitmap containing the image data.

options

Optional image configuration such as pixel ratio or SDF toggle.