Snow

The experimental Snow API to render snow effect on the map.

Constructors

Link copied to clipboard
fun Snow()

Functions

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

Bind snow to the map controller.

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

Thinning factor of snow 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): Snow
open override fun color(@ColorInt color: Int): Snow
open override fun color(color: String): Snow

Snow particles color. Default value: "#ffffff".

Link copied to clipboard

Set the Color property transition options.

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

Snow 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): Snow
open override fun direction(direction: List<Double>): Snow

Main snow particles direction. Heading & pitch Default value: 0,90. Value range: 0, 360

Link copied to clipboard

Set the Direction property transition options.

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

Snow 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): Snow
open override fun opacity(opacity: Double): Snow

Snow 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): Snow
open override fun vignette(vignette: Double): Snow

Snow 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 snow 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 snow 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

Snow particles color. Default value: "#ffffff".

Link copied to clipboard

Snow particles color. Default value: "#ffffff".

Link copied to clipboard

Snow particles color. Default value: "#ffffff".

Link copied to clipboard

Color property transition options.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Density property transition options.

Link copied to clipboard

Main snow particles direction. Heading & pitch Default value: 0,90. Value range: 0, 360

Link copied to clipboard

Main snow particles direction. Heading & pitch Default value: 0,90. Value range: 0, 360

Link copied to clipboard

Direction property transition options.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Intensity property transition options.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Opacity property transition options.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Vignette property transition options.