getSourceAs

inline fun <T : Source> StyleManagerInterface.getSourceAs(sourceId: String): T?

Tries to cast the Source to T.

Return

T if Source is T and null otherwise

Parameters

sourceId

the layer id