getLayerAs

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

Return

T

Parameters

layerId

the layer id

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