Layer

Base class for the different Layer types

abstract class Layer : StyleContract.StyleLayerExtension

Constructors

Layer
Link copied to clipboard
fun Layer()

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

bindTo
Link copied to clipboard

Bind the layer to the Style.

fun bindTo(delegate: StyleManagerInterface)

Bind the layer to the map controller.

open override fun bindTo(delegate: StyleManagerInterface, position: LayerPosition?)
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
maxZoom
Link copied to clipboard

Set the maxzoom property

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

Set the minzoom property

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

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

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

Set the Visibility property

abstract fun visibility(visibility: Visibility): Layer

Properties

layerId
Link copied to clipboard

The ID of the Layer.

abstract val layerId: String
maxZoom
Link copied to clipboard

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

Range: minimum: 0 maximum: 24

abstract val maxZoom: Double?
minZoom
Link copied to clipboard

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

Range: minimum: 0 maximum: 24

abstract val minZoom: Double?
visibility
Link copied to clipboard

Get the Visibility property

abstract val visibility: Visibility?

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