LocationPuck3D

data class LocationPuck3D @JvmOverloads() constructor(modelUri: String, position: List<Float>, modelOpacity: Float, modelScale: List<Float>, modelScaleExpression: String?, modelTranslation: List<Float>, modelRotation: List<Float>) : LocationPuck

Definition of a location_puck_3_d.

Constructors

LocationPuck3D
Link copied to clipboard
fun LocationPuck3D(modelUri: String, position: List<Float> = listOf(0f, 0f), modelOpacity: Float = 1f, modelScale: List<Float> = listOf(1f, 1f, 1f), modelScaleExpression: String? = null, modelTranslation: List<Float> = listOf(0f, 0f, 0f), modelRotation: List<Float> = listOf(0f, 0f, 90f))

Properties

modelOpacity
Link copied to clipboard
var modelOpacity: Float = 1f
The opacity of the model.
modelRotation
Link copied to clipboard
var modelRotation: List<Float>
The rotation of the model.
modelScale
Link copied to clipboard
var modelScale: List<Float>
The scale of the model.
modelScaleExpression
Link copied to clipboard
var modelScaleExpression: String? = null
The scale expression of the model, which will overwrite the default scale expression that keeps the model size constant during zoom.
modelTranslation
Link copied to clipboard
var modelTranslation: List<Float>
The translation of the model lon, lat, z
modelUri
Link copied to clipboard
var modelUri: String
An URL for the model file in gltf format.
position
Link copied to clipboard
var position: List<Float>
The scale of the model.