ColorValue

@Immutable
data class ColorValue(val value: Value)

Defines the color used by the Maps render engine. It can be either Color or an Expression.

Parameters

value

a value representing the color. See Color.

Constructors

Link copied to clipboard
fun ColorValue(value: Color)

Construct the Color with Color.

Link copied to clipboard
fun ColorValue(expression: Expression)

Construct the Color with Mapbox Expression.

Link copied to clipboard
fun ColorValue(value: Value)

Types

Link copied to clipboard
object Companion

ColorValue's companion object.

Properties

Link copied to clipboard
val colorOrNull: Color?

The Color represented by value or null if the stored value represents null is not a color.

Link copied to clipboard
val value: Value