Returns information about the map layer at the given position index in the layer stack.

mapCanvas.layer(index, ...)

Arguments

index

position index in the layer stack (between 0 and mapCanvas.layerCount()-1)

...

low-level parameters (such as host and auth) to be passed on to qgisremote()

Value

A list of class qgislayer().

See also

qgislayer(), mapCanvas.layers()