getSourceAs

inline fun <T : Source> MapboxStyleManager.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