Package com.mapbox.maps.extension.style.image

Types

ImageExtensionImpl
Link copied to clipboard

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

Functions

addImage
Link copied to clipboard

Extension function to add an image provided by the Style Extension to the Style.

fun StyleManagerInterface.addImage(image: StyleContract.StyleImageExtension)
image
Link copied to clipboard

DSL function for ImageExtensionImpl.

fun image(imageId: String, block: ImageExtensionImpl.Builder.() -> Unit): ImageExtensionImpl