getSourceAs

Tries to cast the Source to T, throws ClassCastException if it's another type.

Return

T

Parameters

sourceId

the layer id

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