Added code to TileMapLayer.java