getLayerAs

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

Tries to cast the Layer to T.

Return

T if layer is T, otherwise null

Parameters

layerId

the layer id