removeLayer

open fun removeLayer(@NonNull layerId: String): Boolean

Removes the layer. Any references to the layer become invalid and should not be used anymore

Return

true if the layer was removed, false otherwise

Parameters

layerId

the layer to remove


open fun removeLayer(@NonNull layer: Layer): Boolean

Removes the layer. The reference is re-usable after this and can be re-added

Return

true if the layer was removed, false otherwise

Parameters

layer

the layer to remove