Skip to content

getLayerPositionInContext() ​

getLayerPositionInContext(context, layerModel): number

Returns the position of a layer in the context. Returns -1 if the layer is not present.

Parameters ​

ParameterTypeDescription
contextMapContext-
layerModelMapContextLayer-

Returns ​

number