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 Plugin to the Style.

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

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

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

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

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

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

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

Extension function to get a Layer provided by the Style Plugin 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