layer

fun TiledMap.layer(layerName: String): MapLayer

Extension method to retrieve a MapLayer of a TiledMap. If the layer does not exist then this method is throwing a MissingLayerException

Parameters

layerName

name of MapLayer

Throws

If the layer does not exist