addImageAsync

open fun addImageAsync(@NonNull name: String, @NonNull image: Bitmap)

Adds an image asynchronously, to be used in the map's style.

Parameters

name

the name of the image

image

the pre-multiplied Bitmap


open fun addImageAsync(@NonNull name: String, @NonNull image: Bitmap, @NonNull stretchX: List<ImageStretches>, @NonNull stretchY: List<ImageStretches>, @Nullable content: ImageContent)

Adds an image asynchronously, to be used in the map's style.

Parameters

name

the name of the image

image

the pre-multiplied Bitmap

stretchX

image stretch areas for x axix

stretchY

image stretch areas for y axix

content

image content for text to fit


open fun addImageAsync(@NonNull name: String, @NonNull drawable: Drawable)

Adds an drawable asynchronously, to be converted into a bitmap to be used in the map's style.

Parameters

name

the name of the image

drawable

the drawable instance to convert


open fun addImageAsync(@NonNull name: String, @NonNull drawable: Drawable, @NonNull stretchX: List<ImageStretches>, @NonNull stretchY: List<ImageStretches>, @Nullable content: ImageContent)

Adds an drawable asynchronously, to be converted into a bitmap to be used in the map's style.

Parameters

name

the name of the image

drawable

the drawable instance to convert

stretchX

image stretch areas for x axix

stretchY

image stretch areas for y axix

content

image content for text to fit


open fun addImageAsync(@NonNull name: String, @NonNull bitmap: Bitmap, sdf: Boolean)

Adds an image asynchronously, to be used in the map's style.

Parameters

name

the name of the image

bitmap

the pre-multiplied Bitmap

sdf

the flag indicating image is an SDF or template image


open fun addImageAsync(@NonNull name: String, @NonNull bitmap: Bitmap, sdf: Boolean, @NonNull stretchX: List<ImageStretches>, @NonNull stretchY: List<ImageStretches>, @Nullable content: ImageContent)

Adds an image asynchronously, to be used in the map's style.

Parameters

name

the name of the image

bitmap

the pre-multiplied Bitmap

sdf

the flag indicating image is an SDF or template image

stretchX

image stretch areas for x axix

stretchY

image stretch areas for y axix

content

image content for text to fit