AtmosphereDslReceiver

interface AtmosphereDslReceiver

This Interface contains all the functions that will be exposed to Koltin DSL.

Separated the DSL receiver class to this interface to avoid IDE code suggestion for property getters.

Functions

color
Link copied to clipboard
abstract fun color(color: Expression): Atmosphere
abstract fun color(@ColorInt color: Int): Atmosphere
abstract fun color(color: String = "#ffffff"): Atmosphere

The color of the atmosphere region immediately below the horizon and within the range and above the horizon and within horizon-blend. Using opacity is recommended only for smoothly transitioning fog on/off as anything less than 100% opacity results in more tiles loaded and drawn.

colorTransition
Link copied to clipboard
abstract fun colorTransition(options: StyleTransition): Atmosphere

Set the Color property transition options.

abstract fun colorTransition(block: StyleTransition.Builder.() -> Unit): Atmosphere
highColor
Link copied to clipboard
abstract fun highColor(highColor: Expression): Atmosphere
abstract fun highColor(@ColorInt highColor: Int): Atmosphere
abstract fun highColor(highColor: String = "#245cdf"): Atmosphere

The color of the atmosphere region above the horizon, high-color extends further above the horizon than the color property and its spread can be controlled with horizon-blend. The opacity can be set to 0 to remove the high atmosphere color contribution.

highColorTransition
Link copied to clipboard
abstract fun highColorTransition(options: StyleTransition): Atmosphere

Set the HighColor property transition options.

abstract fun highColorTransition(block: StyleTransition.Builder.() -> Unit): Atmosphere
horizonBlend
Link copied to clipboard
abstract fun horizonBlend(horizonBlend: Expression = Expression.fromRaw("""["interpolate",["linear"],["zoom"],4,0.2,7,0.1]""".trimIndent())): Atmosphere
abstract fun horizonBlend(horizonBlend: Double): Atmosphere

Horizon blend applies a smooth fade from the color of the atmosphere to the color of space. A value of zero leaves a sharp transition from atmosphere to space. Increasing the value blends the color of atmosphere into increasingly high angles of the sky.

horizonBlendTransition
Link copied to clipboard
abstract fun horizonBlendTransition(options: StyleTransition): Atmosphere

Set the HorizonBlend property transition options.

abstract fun horizonBlendTransition(block: StyleTransition.Builder.() -> Unit): Atmosphere
range
Link copied to clipboard
abstract fun range(range: Expression): Atmosphere
abstract fun range(range: List<Double> = listOf(0.5, 10.0)): Atmosphere

The start and end distance range in which fog fades from fully transparent to fully opaque. The distance to the point at the center of the map is defined as zero, so that negative range values are closer to the camera, and positive values are farther away.

rangeTransition
Link copied to clipboard
abstract fun rangeTransition(options: StyleTransition): Atmosphere

Set the Range property transition options.

abstract fun rangeTransition(block: StyleTransition.Builder.() -> Unit): Atmosphere
spaceColor
Link copied to clipboard
abstract fun spaceColor(spaceColor: Expression = Expression.fromRaw("""["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"]""".trimIndent())): Atmosphere
abstract fun spaceColor(@ColorInt spaceColor: Int): Atmosphere
abstract fun spaceColor(spaceColor: String): Atmosphere

The color of the region above the horizon and after the end of the horizon-blend contribution. The opacity can be set to 0 to have a transparent background.

spaceColorTransition
Link copied to clipboard
abstract fun spaceColorTransition(options: StyleTransition): Atmosphere

Set the SpaceColor property transition options.

abstract fun spaceColorTransition(block: StyleTransition.Builder.() -> Unit): Atmosphere
starIntensity
Link copied to clipboard
abstract fun starIntensity(starIntensity: Expression = Expression.fromRaw("""["interpolate",["linear"],["zoom"],5,0.35,6,0]""".trimIndent())): Atmosphere
abstract fun starIntensity(starIntensity: Double): Atmosphere

A value controlling the star intensity where 0 will show no stars and 1 will show stars at their maximum intensity.

starIntensityTransition
Link copied to clipboard
abstract fun starIntensityTransition(options: StyleTransition): Atmosphere

Set the StarIntensity property transition options.

abstract fun starIntensityTransition(block: StyleTransition.Builder.() -> Unit): Atmosphere

Inheritors

Atmosphere
Link copied to clipboard