removeSource

open fun removeSource(@NonNull sourceId: String): Boolean

Removes the source from the style.

Return

true if the source was removed, false otherwise

Parameters

sourceId

the source to remove


open fun removeSource(@NonNull source: Source): Boolean

Removes the source, preserving the reference for re-use

Return

true if the source was removed, false otherwise

Parameters

source

the source to remove