Skip to content

geospatial-sdk / core/lib / changeLayerPositionInContext

changeLayerPositionInContext()

ts
function changeLayerPositionInContext(
   context, 
   layerModel, 
   position): MapContext

Changes the position of a layer in the context.

Parameters

context: MapContext

The current map context.

layerModel: MapContextLayer

The layer whose position is to be changed.

position: number

The new position for the layer.

Returns

MapContext

  • The new map context with the layer moved to the new position.

Defined in

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