ColorValue

data class ColorValue(val value: Value) : HoldsValue

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.

Functions

Link copied to clipboard

True if the this value is not INITIAL

Properties

Link copied to clipboard

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

Link copied to clipboard
open override val value: Value