addImage

abstract fun addImage(id: String, image: Bitmap, sdf: Boolean)

Parameters

id

Style image id (e.g. mapsgl:icon-name).

image

Raster pixels; for SDF icons the bitmap should encode distance in alpha as expected by Mapbox SDF.

sdf

When true, Mapbox treats the image as signed-distance-field for halo/scale-friendly rendering.