getLayerPositionInContext() ​
getLayerPositionInContext(
context,layerModel):number
Returns the position of a layer in the context. Returns -1 if the layer is not present.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
context | MapContext | - |
layerModel | MapContextLayer | - |
Returns ​
number