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

Types

Layer
Link copied to clipboard
abstract class Layer : StyleContract.StyleLayerExtension
Base class for the different Layer types

Functions

addLayer
Link copied to clipboard
fun StyleInterface.addLayer(layer: StyleContract.StyleLayerExtension)
Extension function to add a Layer provided by the Style Extension to the Style.
addLayerAbove
Link copied to clipboard
fun StyleInterface.addLayerAbove(layer: StyleContract.StyleLayerExtension, above: String?)
Extension function to add a Layer provided by the Style Extension to the Style.
addLayerAt
Link copied to clipboard
fun StyleInterface.addLayerAt(layer: StyleContract.StyleLayerExtension, index: Int?)
Extension function to add a Layer provided by the Style Extension to the Style.
addLayerBelow
Link copied to clipboard
fun StyleInterface.addLayerBelow(layer: StyleContract.StyleLayerExtension, below: String?)
Extension function to add a Layer provided by the Style Extension to the Style.
addPersistentLayer
Link copied to clipboard
fun StyleInterface.addPersistentLayer(layer: Layer, position: LayerPosition? = null)
Add layer to the style persistently.
getLayer
Link copied to clipboard
fun StyleManagerInterface.getLayer(layerId: String): Layer?
Extension function to get a Layer provided by the Style Extension by layer id.
getLayerAs
Link copied to clipboard
inline fun <T : Layer> StyleManagerInterface.getLayerAs(layerId: String): T?
Tries to cast the Layer to T.
isPersistent
Link copied to clipboard
fun Layer.isPersistent(): Boolean?
Get the persistent property as Boolean.