Package com.mapbox.maps.extension.style.layers

Types

Layer
Link copied to clipboard

Base class for the different Layer types

abstract class Layer : StyleContract.StyleLayerExtension

Functions

addLayer
Link copied to clipboard

Extension function to add a Layer provided by the Style Extension to the Style.

fun StyleInterface.addLayer(layer: StyleContract.StyleLayerExtension)
addLayerAbove
Link copied to clipboard

Extension function to add a Layer provided by the Style Extension to the Style.

fun StyleInterface.addLayerAbove(layer: StyleContract.StyleLayerExtension, above: String?)
addLayerAt
Link copied to clipboard

Extension function to add a Layer provided by the Style Extension to the Style.

fun StyleInterface.addLayerAt(layer: StyleContract.StyleLayerExtension, index: Int?)
addLayerBelow
Link copied to clipboard

Extension function to add a Layer provided by the Style Extension to the Style.

fun StyleInterface.addLayerBelow(layer: StyleContract.StyleLayerExtension, below: String?)
getLayer
Link copied to clipboard

Extension function to get a Layer provided by the Style Extension by layer id.

fun StyleManagerInterface.getLayer(layerId: String): Layer?
getLayerAs
Link copied to clipboard

Tries to cast the Layer to T, throws ClassCastException if it's another type.

fun <T : Layer> StyleManagerInterface.getLayerAs(layerId: String): T