ModelLayer

Model layer

class ModelLayer(layerId: String, sourceId: String) : Layer, ModelLayerDsl

Parameters

layerId

the ID of the layer

sourceId

the ID of the source

Constructors

ModelLayer
Link copied to clipboard

the ID of the layer

fun ModelLayer(layerId: String, sourceId: String)

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

bindTo
Link copied to clipboard

Bind the layer to the Style.

override fun bindTo(delegate: StyleManagerInterface)

Bind the layer to the map controller.

open override fun bindTo(delegate: StyleManagerInterface, position: LayerPosition?)
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
filter
Link copied to clipboard

Set the filter property

open override fun filter(filter: Expression): ModelLayer
getCachedLayerProperties
Link copied to clipboard
override fun getCachedLayerProperties(): Value
hashCode
Link copied to clipboard
open override fun hashCode(): Int
maxZoom
Link copied to clipboard

Set the maxzoom property

open override fun maxZoom(maxZoom: Double): ModelLayer
minZoom
Link copied to clipboard

Set the minzoom property

open override fun minZoom(minZoom: Double): ModelLayer
modelOpacity
Link copied to clipboard

Set the ModelOpacity property

open override fun modelOpacity(modelOpacity: Expression): ModelLayer
open override fun modelOpacity(modelOpacity: Double): ModelLayer
modelOpacityTransition
Link copied to clipboard

Set the ModelOpacity property transition options

open override fun modelOpacityTransition(options: StyleTransition): ModelLayer
open override fun modelOpacityTransition(block: StyleTransition.Builder.() -> Unit): ModelLayer
modelRotation
Link copied to clipboard

Set the ModelRotation property

open override fun modelRotation(modelRotation: Expression): ModelLayer
open override fun modelRotation(modelRotation: List<Double>): ModelLayer
modelRotationTransition
Link copied to clipboard

Set the ModelRotation property transition options

open override fun modelRotationTransition(options: StyleTransition): ModelLayer
open override fun modelRotationTransition(block: StyleTransition.Builder.() -> Unit): ModelLayer
modelScale
Link copied to clipboard

Set the ModelScale property

open override fun modelScale(modelScale: Expression): ModelLayer
open override fun modelScale(modelScale: List<Double>): ModelLayer
modelTranslation
Link copied to clipboard

Set the ModelTranslation property

open override fun modelTranslation(modelTranslation: Expression): ModelLayer
open override fun modelTranslation(modelTranslation: List<Double>): ModelLayer
sourceLayer
Link copied to clipboard

Set the sourceLayer property

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

Set the Visibility property

open override fun visibility(visibility: Visibility): ModelLayer

Properties

filter
Link copied to clipboard

A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The feature-state expression is not supported in filter expressions.

val filter: Expression?
layerId
Link copied to clipboard

the ID of the layer

open override val layerId: String
layerProperties
Link copied to clipboard

Properties of this layer.

override val layerProperties: HashMap<String, PropertyValue<*>>
maxZoom
Link copied to clipboard

The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.

Range: minimum: 0 maximum: 24

open override val maxZoom: Double?
minZoom
Link copied to clipboard

The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.

Range: minimum: 0 maximum: 24

open override val minZoom: Double?
modelOpacity
Link copied to clipboard

The opacity of the model layer.

val modelOpacity: Double?
modelOpacityAsExpression
Link copied to clipboard

This is an Expression representation of "model-opacity".

The opacity of the model layer.

val modelOpacityAsExpression: Expression?
modelOpacityTransition
Link copied to clipboard

Transition options for ModelOpacity.

val modelOpacityTransition: StyleTransition?
modelRotation
Link copied to clipboard

The rotation of the model in euler angles lon, lat, z.

val modelRotation: List<Double>?
modelRotationAsExpression
Link copied to clipboard

This is an Expression representation of "model-rotation".

The rotation of the model in euler angles lon, lat, z.

val modelRotationAsExpression: Expression?
modelRotationTransition
Link copied to clipboard

Transition options for ModelRotation.

val modelRotationTransition: StyleTransition?
modelScale
Link copied to clipboard

The scale of the model.

val modelScale: List<Double>?
modelScaleAsExpression
Link copied to clipboard

This is an Expression representation of "model-scale".

The scale of the model.

val modelScaleAsExpression: Expression?
modelTranslation
Link copied to clipboard

The translation of the model lon, lat, z

val modelTranslation: List<Double>?
modelTranslationAsExpression
Link copied to clipboard

This is an Expression representation of "model-translation".

The translation of the model lon, lat, z

val modelTranslationAsExpression: Expression?
sourceId
Link copied to clipboard

the ID of the source

val sourceId: String
sourceLayer
Link copied to clipboard

Source layer.

val sourceLayer: String?
visibility
Link copied to clipboard

Visibility of the layer.

open override val visibility: Visibility?