geospatial-sdk / core/lib / removeLayerFromContext
removeLayerFromContext()
ts
function removeLayerFromContext(context, layerModel): MapContext
Removes a layer from the context.
Parameters
• context: MapContext
The current map context.
• layerModel: MapContextLayer
The layer to be removed.
Returns
- The new map context without the removed layer.