Layer

Base class for the different Layer types

Constructors

Link copied to clipboard
fun Layer()

Types

Link copied to clipboard
object Companion

Static variables and methods.

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
abstract fun maxZoom(maxZoom: Double): Layer

Set the maxzoom property

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

Set the minzoom property

Link copied to clipboard
abstract fun slot(slot: String): Layer

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 toString(): String

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

Link copied to clipboard
abstract fun visibility(visibility: Expression): Layer

Set the Visibility property as expression.

abstract fun visibility(visibility: Visibility): Layer

Set the Visibility property.

Properties

Link copied to clipboard
abstract val layerId: String

The ID of the Layer.

Link copied to clipboard
abstract val maxZoom: Double?

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

Link copied to clipboard
abstract val minZoom: Double?

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

Link copied to clipboard
abstract 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
abstract val visibility: Visibility?

Get the Visibility property.

Link copied to clipboard

Get the Visibility property as Expression.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard

Get the persistent property as Boolean.