changeLayerPositionInContext() ​
changeLayerPositionInContext(
context,layerModel,position):MapContext
Changes the position of a layer in the context.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
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.