Skip to content

changeLayerPositionInContext() ​

changeLayerPositionInContext(context, layerModel, position): MapContext

Changes the position of a layer in the context.

Parameters ​

ParameterTypeDescription
contextMapContextThe current map context.
layerModelMapContextLayerThe layer whose position is to be changed.
positionnumberThe new position for the layer.

Returns ​

MapContext

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