ModelSource

A Model data source.

class ModelSource : Source

Types

Builder
Link copied to clipboard

The Builder for ModelSource.

class Builder(sourceId: String)

Functions

addModel
Link copied to clipboard

Add a new model

fun addModel(modelName: String, url: String, position: List<Double>, orientation: List<Double>)
bindTo
Link copied to clipboard

Add the source to the Style.

open override fun bindTo(delegate: StyleManagerInterface)
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getCachedSourceProperties
Link copied to clipboard
override fun getCachedSourceProperties(): Value
getOrientation
Link copied to clipboard

Get the orientation for the model

fun getOrientation(modelName: String): List<Double>?
getPosition
Link copied to clipboard

Get the position for the model

fun getPosition(modelName: String): List<Double>?
getURL
Link copied to clipboard

Get the url for a model

fun getURL(modelName: String): String?
hashCode
Link copied to clipboard
open override fun hashCode(): Int
removeModel
Link copied to clipboard

Remove the model

fun removeModel(modelName: String)
setOrientation
Link copied to clipboard

Set the orientation of the model style source.

fun setOrientation(value: List<Double>, modelName: String)
setPosition
Link copied to clipboard

Set the position of the model style source.

fun setPosition(value: List<Double>, modelName: String)
setURL
Link copied to clipboard

Updates the URL of the model style source.

fun setURL(url: String, modelName: String)
toString
Link copied to clipboard

Returns a human readable string that includes the cached properties of the source.

open override fun toString(): String
updateProperty
Link copied to clipboard
override fun updateProperty(property: PropertyValue<*>)

Properties

sourceId
Link copied to clipboard

The ID of the Source.

override val sourceId: String