getSourceAs

Tries to cast the Source to T.

Return

T if Source is T and null otherwise

Parameters

sourceId

the layer id

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