Rain

The experimental Rain API to render rain effect on the map.

Constructors

Link copied to clipboard
fun Rain()

Functions

Link copied to clipboard
open override fun bindTo(delegate: MapboxStyleManager)

Bind rain to the map controller.

Link copied to clipboard
open override fun centerThinning(centerThinning: Expression): Rain
open override fun centerThinning(centerThinning: Double): Rain

Thinning factor of rain particles from center. 0 - no thinning. 1 - maximal central area thinning. Default value: 1. Value range: 0, 1

Link copied to clipboard

Set the CenterThinning property transition options.

Link copied to clipboard
open override fun color(color: Expression): Rain
open override fun color(@ColorInt color: Int): Rain
open override fun color(color: String): Rain

Default value: "#ffffff".

Link copied to clipboard

Set the Color property transition options.

Link copied to clipboard
open override fun density(density: Expression): Rain
open override fun density(density: Double): Rain

Rain particles density. Default value: 1. Value range: 0, 1

Link copied to clipboard

Set the Density property transition options.

Link copied to clipboard
open override fun direction(direction: Expression): Rain
open override fun direction(direction: List<Double>): Rain

Main rain particles direction. Heading & pitch Default value: 0,80. Value range: 0, 360

Link copied to clipboard

Set the Direction property transition options.

Link copied to clipboard
open override fun intensity(intensity: Expression): Rain
open override fun intensity(intensity: Double): Rain

Rain particles movement factor. Default value: 1. Value range: 0, 1

Link copied to clipboard

Set the Intensity property transition options.

Link copied to clipboard
open override fun opacity(opacity: Expression): Rain
open override fun opacity(opacity: Double): Rain

Rain particles opacity. Default value: 1. Value range: 0, 1

Link copied to clipboard

Set the Opacity property transition options.

Link copied to clipboard
open override fun vignette(vignette: Expression): Rain
open override fun vignette(vignette: Double): Rain

Rain vignette screen-space effect. Default value: 0. Value range: 0, 1

Link copied to clipboard

Set the Vignette property transition options.

Properties

Link copied to clipboard

Thinning factor of rain particles from center. 0 - no thinning. 1 - maximal central area thinning. Default value: 1. Value range: 0, 1

Link copied to clipboard

Thinning factor of rain particles from center. 0 - no thinning. 1 - maximal central area thinning. Default value: 1. Value range: 0, 1

Link copied to clipboard

CenterThinning property transition options.

Link copied to clipboard

Default value: "#ffffff".

Link copied to clipboard

Default value: "#ffffff".

Link copied to clipboard

Default value: "#ffffff".

Link copied to clipboard

Color property transition options.

Link copied to clipboard

Rain particles density. Default value: 1. Value range: 0, 1

Link copied to clipboard

Rain particles density. Default value: 1. Value range: 0, 1

Link copied to clipboard

Density property transition options.

Link copied to clipboard

Main rain particles direction. Heading & pitch Default value: 0,80. Value range: 0, 360

Link copied to clipboard

Main rain particles direction. Heading & pitch Default value: 0,80. Value range: 0, 360

Link copied to clipboard

Direction property transition options.

Link copied to clipboard

Rain particles movement factor. Default value: 1. Value range: 0, 1

Link copied to clipboard

Rain particles movement factor. Default value: 1. Value range: 0, 1

Link copied to clipboard

Intensity property transition options.

Link copied to clipboard

Rain particles opacity. Default value: 1. Value range: 0, 1

Link copied to clipboard

Rain particles opacity. Default value: 1. Value range: 0, 1

Link copied to clipboard

Opacity property transition options.

Link copied to clipboard

Rain vignette screen-space effect. Default value: 0. Value range: 0, 1

Link copied to clipboard

Rain vignette screen-space effect. Default value: 0. Value range: 0, 1

Link copied to clipboard

Vignette property transition options.