Layer

abstract class Layer : StyleContract.StyleLayerExtension

Base class for the different Layer types

Constructors

Layer
Link copied to clipboard
fun Layer()

Types

Companion
Link copied to clipboard
object Companion

Static variables and methods.

Functions

bindTo
Link copied to clipboard
fun bindTo(delegate: StyleInterface)

Bind the layer to the Style.

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

Bind the layer to the map controller.

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

Set the maxzoom property

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

Set the minzoom property

toString
Link copied to clipboard
open override fun toString(): String

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

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

Set the Visibility property

Properties

layerId
Link copied to clipboard
abstract val layerId: String

The ID of the Layer.

maxZoom
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.

minZoom
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.

visibility
Link copied to clipboard
abstract val visibility: Visibility?

Get the Visibility property

Inheritors

BackgroundLayer
Link copied to clipboard
CircleLayer
Link copied to clipboard
FillExtrusionLayer
Link copied to clipboard
FillLayer
Link copied to clipboard
HeatmapLayer
Link copied to clipboard
HillshadeLayer
Link copied to clipboard
LineLayer
Link copied to clipboard
LocationIndicatorLayer
Link copied to clipboard
ModelLayer
Link copied to clipboard
RasterLayer
Link copied to clipboard
SkyLayer
Link copied to clipboard
SymbolLayer
Link copied to clipboard

Extensions

isPersistent
Link copied to clipboard
fun Layer.isPersistent(): Boolean?

Get the persistent property as Boolean.