ImageExtensionImpl

Concrete implementation of ImagePlugin, the plugin is used to add an image to be used in the style.

This API can also be used for updating an image. If the image id was already added, it gets replaced by the new image.

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

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

Constructors

ImageExtensionImpl
Link copied to clipboard
fun ImageExtensionImpl(builder: ImageExtensionImpl.Builder)

Types

Builder
Link copied to clipboard
class Builder(imageId: String)

Builder for the ImageExtensionImpl.

Functions

bindTo
Link copied to clipboard
open override fun bindTo(delegate: StyleInterface)

Add the image to the style.