SlotLayer

class SlotLayer(val layerId: String) : Layer, SlotLayerDsl

Marks the position of a slot.

See also

Parameters

layerId

the ID of the layer

Constructors

Link copied to clipboard
fun SlotLayer(layerId: String)

Functions

Link copied to clipboard
fun bindTo(delegate: MapboxStyleManager)

Bind the layer to the Style.

open override fun bindTo(delegate: MapboxStyleManager, position: LayerPosition?)

Bind the layer to the map controller.

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

No-op.

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

No-op.

Link copied to clipboard
open override fun slot(slot: String): SlotLayer

The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.

Link copied to clipboard
open override fun visibility(visibility: Expression): SlotLayer
open override fun visibility(visibility: Visibility): SlotLayer

No-op.

Properties

Link copied to clipboard
open override val layerId: String
Link copied to clipboard
open override val maxZoom: Double? = null

No-op, returns NULL.

Link copied to clipboard
open override val minZoom: Double? = null

No-op, returns NULL.

Link copied to clipboard
open override val slot: String?

The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.

Link copied to clipboard
open override val visibility: Visibility? = null

No-op.

Link copied to clipboard
open override val visibilityAsExpression: Expression? = null

No-op.

Extensions

Link copied to clipboard

Get the persistent property as Boolean.