Package com. mapbox. maps. extension. style. layers
Types
Layer
Link copied to clipboard
Base class for the different Layer types
Functions
add Layer
Link copied to clipboard
Extension function to add a Layer provided by the Style Extension to the Style.
add Layer Above
Link copied to clipboard
fun StyleInterface.addLayerAbove(layer: StyleContract.StyleLayerExtension, above: String?)
Content copied to clipboard
Extension function to add a Layer provided by the Style Extension to the Style.
add Layer At
Link copied to clipboard
fun StyleInterface.addLayerAt(layer: StyleContract.StyleLayerExtension, index: Int?)
Content copied to clipboard
Extension function to add a Layer provided by the Style Extension to the Style.
add Layer Below
Link copied to clipboard
fun StyleInterface.addLayerBelow(layer: StyleContract.StyleLayerExtension, below: String?)
Content copied to clipboard
Extension function to add a Layer provided by the Style Extension to the Style.
add Persistent Layer
Link copied to clipboard
fun StyleInterface.addPersistentLayer(layer: Layer, position: LayerPosition? = null)
Content copied to clipboard
Add layer to the style persistently.
get Layer
Link copied to clipboard
Extension function to get a Layer provided by the Style Extension by layer id.
get Layer As
Link copied to clipboard
inline fun <T : Layer> StyleManagerInterface.getLayerAs(layerId: String): T?
Content copied to clipboard
Tries to cast the Layer to T.
is Persistent
Link copied to clipboard
Get the persistent property as Boolean.