Model

class Model


Model object class to represent a 3D model object within a 3D map scene.

Summary

Public functions

Int

The altitude mode of the 3d model.

String!

A read-only unique identifier for this model.

Orientation!

The orientation for the 3d model to be renderered in the 3d map scene.

LatLngAltitude!

The coordinates that determine the position of the model in the 3d map scene.

Vector3D!

The scale as a 3d vector of the model to be renderered in the 3d map scene.

String!

The source URL of the model object to be loaded into the 3d map scene.

Unit

Removes this model from the 3d map scene.

Unit

Sets the altitude mode of the 3d model.

Unit

Sets the listener for click events on the model.

Unit

Sets the orientation for the 3d model to be renderered in the 3d map scene.

Unit

Sets the coordinates that determine the position of the model in the 3d map scene.

Unit
setScale(value: Vector3D!)

Sets the scale as a 3d vector of the model to be renderered in the 3d map scene.

Unit
setUrl(value: String!)

Sets the source URL of the model object to be loaded into the 3d map scene.

Public functions

getAltitudeMode

@AltitudeMode
fun getAltitudeMode(): Int

The altitude mode of the 3d model.

getId

fun getId(): String!

A read-only unique identifier for this model. This will assigned during creation and will be used to identify the model when updating or removing it.

getOrientation

fun getOrientation(): Orientation!

The orientation for the 3d model to be renderered in the 3d map scene.

getPosition

fun getPosition(): LatLngAltitude!

The coordinates that determine the position of the model in the 3d map scene.

getScale

fun getScale(): Vector3D!

The scale as a 3d vector of the model to be renderered in the 3d map scene.

getUrl

fun getUrl(): String!

The source URL of the model object to be loaded into the 3d map scene.

remove

fun remove(): Unit

Removes this model from the 3d map scene.

setAltitudeMode

fun setAltitudeMode(@AltitudeMode value: Int): Unit

Sets the altitude mode of the 3d model.

setClickListener

fun setClickListener(listener: OnModelClickListener?): Unit

Sets the listener for click events on the model.

setOrientation

fun setOrientation(value: Orientation!): Unit

Sets the orientation for the 3d model to be renderered in the 3d map scene.

setPosition

fun setPosition(value: LatLngAltitude!): Unit

Sets the coordinates that determine the position of the model in the 3d map scene.

setScale

fun setScale(value: Vector3D!): Unit

Sets the scale as a 3d vector of the model to be renderered in the 3d map scene.

setUrl

fun setUrl(value: String!): Unit

Sets the source URL of the model object to be loaded into the 3d map scene.