Package com.mapbox.maps.extension.style

Types

StyleContract
Link copied to clipboard

Define the common interfaces for the Style component.

interface StyleContract
StyleExtensionImpl
Link copied to clipboard

The concrete implementation of style extension.

class StyleExtensionImpl : StyleContract.StyleExtension

Functions

addStyleImage
Link copied to clipboard

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.

layout-symbol-icon-image

paint-line-line-pattern

paint-fill-fill-pattern

fun StyleManagerInterface.addStyleImage(imageId: String, bitmap: Bitmap): Expected<Void, String>
style
Link copied to clipboard

DSL function to construct a style extension.

fun style(styleUri: String, block: StyleExtensionImpl.Builder.() -> Unit): StyleContract.StyleExtension