Builder

class Builder(val style: String)

The builder for style extension.

Constructors

Link copied to clipboard
fun Builder(style: String)

Functions

Link copied to clipboard

Build an StyleContract.StyleExtension instance from this builder.

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

Link copied to clipboard
@JvmName(name = "setTransition")
operator fun TransitionOptions.unaryPlus()

Extension function to add TransitionOptions to be applied when loading the style.

@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 DynamicLight.unaryPlus()

Extension function for DynamicLight to overload Unary operations.

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

Extension function for FlatLight to overload Unary operations.

@JvmName(name = "addModel")
operator fun ModelExtensionImpl.unaryPlus()

Extension function for ModelExtensionImpl to overload Unary operations.

@JvmName(name = "setRain")
operator fun Rain.unaryPlus()

Extension function for Rain to overload Unary operations.

@JvmName(name = "setSnow")
operator fun Snow.unaryPlus()

Extension function for Snow 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

Link copied to clipboard

Style represented as JSON or URI.