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.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
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.
minZoom
Link copied to clipboard
abstract val minZoom: Double?
The minimum zoom level for the layer.
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
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.