remove

fun remove(layer: ImageryLayer, destroy: Boolean? = definedExternally): Boolean(source)

Removes a layer from this collection, if present.

Return

true if the layer was in the collection and was removed, false if the layer was not in the collection.

Parameters

layer

The layer to remove.

destroy

whether to destroy the layers in addition to removing them. Default value - true

See also