sdk-maps / com.tomtom.online.sdk.map.style.layers / Layer

Layer

interface Layer : JniNativeHandleOwner

An interface that represents the style layer.

Functions

getId

abstract fun getId(): String

Returns the ID (a human-readable name) of the layer.

getMaxZoom

abstract fun getMaxZoom(): Float

Returns the largest zoom value that the layer is visible at.

getMinZoom

abstract fun getMinZoom(): Float

Returns the smallest zoom value that the layer is visible at.

getSourceId

abstract fun getSourceId(): String

Returns the ID (a human-readable name) of the source of data for this layer.

getSourceLayer

abstract fun getSourceLayer(): String

Returns the ID of the source layer of this layer.

getVisibility

abstract fun getVisibility(): Visibility

Returns the visibility of this layer.

resetFilter

abstract fun resetFilter(): Unit

Reset expression used for properties filtering.

setFilter

abstract fun setFilter(expression: Expression): Unit

Sets expression used for properties filtering.

setMaxZoom

abstract fun setMaxZoom(maxZoom: Float): Unit

Sets the largest zoom value that the layer is visible at.

setMinZoom

abstract fun setMinZoom(minZoom: Float): Unit

Sets the smallest zoom value that the layer is visible at.

setSourceLayer

abstract fun setSourceLayer(sourceLayer: String): Unit

Sets the source layer for this layer.

setVisibility

abstract fun setVisibility(visibility: Visibility): Unit

Sets the visibility of this layer.