addStyleImage

Adds an image to be used in the style. This API can also be used for updating an image. If the image \a id was already added, it gets replaced by the new image.

The image can be used in icon-image, fill-pattern, and line-pattern.

https://www.mapbox.com/mapbox-gl-js/style-spec/#layout-symbol-icon-image https://www.mapbox.com/mapbox-gl-js/style-spec/#paint-line-line-pattern https://www.mapbox.com/mapbox-gl-js/style-spec/#paint-fill-fill-pattern

Return

A string describing an error if the operation was not successful, empty otherwise.

Parameters

bitmap

Bitmap data of the image.

imageId

ID of the image.

fun StyleManagerInterface.addStyleImage(imageId: String, bitmap: Bitmap): Expected<Void, String>