Builder

class Builder(styleUri: String)

The builder for style extension.

Constructors

Builder
Link copied to clipboard
fun Builder(styleUri: String)

Functions

build
Link copied to clipboard
fun build(): StyleContract.StyleExtension

Build an StyleContract.StyleExtension instance from this builder.

layerAtPosition
Link copied to clipboard
fun layerAtPosition(layer: Layer, above: String? = null, below: String? = null, at: Int? = null): Pair<Layer, LayerPosition>

Convenient function to combine Layer and LayerPosition into Pair<Layer, LayerPosition>.

unaryPlus
Link copied to clipboard
@JvmName(name = "setAtmosphere")
operator fun Atmosphere.unaryPlus()

Extension function for Atmosphere to overload Unary operations.

@JvmName(name = "addImage")
operator fun ImageExtensionImpl.unaryPlus()

Extension function for ImageExtensionImpl to overload Unary operations.

@JvmName(name = "addImage9Patch")
operator fun ImageNinePatchExtensionImpl.unaryPlus()

Extension function for ImageNinePatchExtensionImpl to overload Unary operations.

@JvmName(name = "addLayer")
operator fun Layer.unaryPlus()

Extension function for Layer to overload Unary operations.

@JvmName(name = "setLight")
operator fun Light.unaryPlus()

Extension function for Light to overload Unary operations.

@JvmName(name = "setProjection")
operator fun Projection.unaryPlus()

Extension function for Projection to overload Unary operations.

@JvmName(name = "addSource")
operator fun Source.unaryPlus()

Extension function for Source to overload Unary operations.

@JvmName(name = "setTerrain")
operator fun Terrain.unaryPlus()

Extension function for Terrain to overload Unary operations.

@JvmName(name = "addLayerAtPosition")
operator fun Pair<Layer, LayerPosition>.unaryPlus()

Extension function for Pair<Layer, LayerPosition> to overload Unary operations.

Properties

styleUri
Link copied to clipboard
val styleUri: String

The Uri of the style to load.