/mapview/removeLayer

The module exports the removeLayer method which is bound to the mapview.

Methods

(inner) removeLayer(layers)

The method will iterate of an array of layer or layer keys and will call the remove method of the referenced layer.

Parameters:
NameTypeDescription
layersstring | object | array

A single layer key/object or an array of layer keys/objects to be removed from the mapview.