Package com.mapbox.maps.extension.style.utils

Types

ColorUtils
Link copied to clipboard
object ColorUtils

Color utility class.

Functions

silentUnwrap
Link copied to clipboard
inline fun <T> StylePropertyValue.silentUnwrap(): T?

Extension function for StylePropertyValue to silently unwrap StylePropertyValue to given type.

toValue
Link copied to clipboard
fun Feature.toValue(): Value

Extension function for Feature to convert Feature to Value.

fun FeatureCollection.toValue(): Value

Extension function for FeatureCollection to convert FeatureCollection to Value.

fun Geometry.toValue(): Value

Extension function for Geometry to convert Geometry to Value.

unwrap
Link copied to clipboard
inline fun <T> StylePropertyValue.unwrap(): T

Extension function for StylePropertyValue to unwrap StylePropertyValue to given type.

unwrapToAny
Link copied to clipboard
fun Value.unwrapToAny(): Any

Extension function for Value to unwrap Value to Any.

unwrapToExpression
Link copied to clipboard
fun Value.unwrapToExpression(): Expression

Extension function for Value to unwrap Value to Expression.

unwrapToStyleTransition
Link copied to clipboard
fun Value.unwrapToStyleTransition(): StyleTransition

Extension function for Value to unwrap Value to StyleTransition.

unwrapToTyped
Link copied to clipboard
inline fun <T> Value.unwrapToTyped(): T

Extension function for Value to unwrap Value to the given type.