getLayer

abstract fun getLayer(layer: Int): MapLayer(source)

Returns the layer at the specified index. The layer is the y-coordinate of the layer that should be returned.

Return

the layer at the specified index

Parameters

layer

the y-coordinate of the layer to return

Throws

if there is no layer at the specified index