getLayerAs

Tries to cast the Layer to T.

Return

T if layer is T, otherwise null

Parameters

layerId

the layer id

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