Tilemap.layer is a getter/setter to the current layer object (which can be changed with Tilemap.setLayer)