get Layer As
inline fun <T : Layer> StyleManagerInterface.getLayerAs(layerId: String): T?
Content copied to clipboard
Tries to cast the Layer to T.
Return
T if layer is T, otherwise null
Parameters
layerId
the layer id
Tries to cast the Layer to T.
T if layer is T, otherwise null
the layer id