Skip to content

removeLayerFromContext() ​

removeLayerFromContext(context, layerModel): MapContext

Removes a layer from the context.

Parameters ​

ParameterTypeDescription
contextMapContextThe current map context.
layerModelMapContextLayerThe layer to be removed.

Returns ​

MapContext

The new map context without the removed layer.