remove
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