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
- The new map context with the layer moved to the new position.