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))

Functions

component1
Link copied to clipboard
operator fun component1(): String
component2
Link copied to clipboard
operator fun component2(): List<Float>
component3
Link copied to clipboard
operator fun component3(): Float
component4
Link copied to clipboard
operator fun component4(): List<Float>
component5
Link copied to clipboard
operator fun component5(): String?
component6
Link copied to clipboard
operator fun component6(): List<Float>
component7
Link copied to clipboard
operator fun component7(): List<Float>
copy
Link copied to clipboard
fun copy(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)): LocationPuck3D
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

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 position of the model.