ModelLayerDsl

interface ModelLayerDsl

This Interface contains all the functions that will be exposed to Koltin DSL.

Separated the DSL receiver class to this interface to avoid IDE code suggestion for property getters.

Functions

filter
Link copied to clipboard
abstract fun filter(filter: Expression): ModelLayer

A filter is a property at the layer level that determines which features should be rendered in a style layer.

maxZoom
Link copied to clipboard
abstract fun maxZoom(maxZoom: Double): ModelLayer

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

minZoom
Link copied to clipboard
abstract fun minZoom(minZoom: Double): ModelLayer

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

modelId
Link copied to clipboard
abstract fun modelId(modelId: Expression): ModelLayer
abstract fun modelId(modelId: String): ModelLayer

Model to render.

modelRotation
Link copied to clipboard
abstract fun modelRotation(modelRotation: Expression): ModelLayer
abstract fun modelRotation(modelRotation: List<Double> = listOf(0.0, 0.0, 0.0)): ModelLayer

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

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

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

modelScale
Link copied to clipboard
abstract fun modelScale(modelScale: Expression): ModelLayer
abstract fun modelScale(modelScale: List<Double> = listOf(1.0, 1.0, 1.0)): ModelLayer

The scale of the model.

modelScaleTransition
Link copied to clipboard
abstract fun modelScaleTransition(options: StyleTransition): ModelLayer
abstract fun modelScaleTransition(block: StyleTransition.Builder.() -> Unit): ModelLayer

The scale of the model.

modelType
Link copied to clipboard
abstract fun modelType(modelType: Expression): ModelLayer
abstract fun modelType(modelType: ModelType = ModelType.COMMON_3D): ModelLayer

Defines rendering behavior of model in respect to other 3D scene objects.

sourceLayer
Link copied to clipboard
abstract fun sourceLayer(sourceLayer: String): ModelLayer

A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.

visibility
Link copied to clipboard
abstract fun visibility(visibility: Visibility): ModelLayer

Whether this layer is displayed.

Inheritors

ModelLayer
Link copied to clipboard