Builder

The builder for style extension.

class Builder(styleUri: String)

Constructors

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

Functions

build
Link copied to clipboard

Build an StyleExtension instance from this builder.

fun build(): StyleContract.StyleExtension
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
layerAtPosition
Link copied to clipboard

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

fun layerAtPosition(layer: Layer, above: String?, below: String?, at: Int?): Pair<Layer, LayerPosition>
toString
Link copied to clipboard
open override fun toString(): String
unaryPlus
Link copied to clipboard

Extension function for ImageExtensionImpl to overload Unary operations.

Apply +ImageExtensionImpl will add the source to the StyleExtensionImpl.

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

Extension function for Layer to overload Unary operations.

Apply +Layer will add the layer to the StyleExtensionImpl.

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

Extension function for Light to overload Unary operations.

Apply +Light will add the light to the StyleExtensionImpl.

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

Extension function for Source to overload Unary operations.

Apply +Source will add the source to the StyleExtensionImpl.

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

Extension function for Terrain to overload Unary operations.

Apply +Terrain will add the terrain to the StyleExtensionImpl.

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

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

Apply +Pair<Layer, LayerPosition> will add the layer to the StyleExtensionImpl at given LayerPosition.

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

Properties

styleUri
Link copied to clipboard

The Uri of the style to load.

val styleUri: String