Skip to content

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

MapContext

  • The new map context without the removed layer.

Defined in

packages/core/lib/utils/map-context.ts:69