CustomLayerDsl

interface CustomLayerDsl

This Interface contains all the functions that will be exposed to Kotlin DSL.

Separated the DSL receiver class to this interface to avoid IDE code suggestion for property getters.

Functions

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

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 fun minZoom(minZoom: Double): CustomLayer

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

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

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 fun visibility(visibility: Expression): CustomLayer
abstract fun visibility(visibility: Visibility): CustomLayer

Whether this layer is displayed.

Inheritors

Link copied to clipboard