ModelId

data class ModelId(val value: Value, val modelInfo: Pair<String, String>? = null)

Model to render.

Parameters

value

the property wrapped in Value to be used with native renderer.

modelInfo

The optional 3D model information, including the model id and model uri as a pair of String. It will be added to the style if available.

Constructors

Link copied to clipboard
fun ModelId(value: String)

Construct the ModelId with String.

Link copied to clipboard
fun ModelId(modelId: String, uri: String)

Construct the ModelId with modelId and uri.

Link copied to clipboard
fun ModelId(expression: Expression)

Construct the ModelId with Mapbox Expression.

Link copied to clipboard
fun ModelId(value: Value, modelInfo: Pair<String, String>? = null)

Types

Link copied to clipboard
object Companion

Public companion object.

Properties

Link copied to clipboard
val modelInfo: Pair<String, String>? = null
Link copied to clipboard