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 plugin.

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.

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

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

DSL function to construct a style plugin.

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