map generator works in terrain, resource and unit layers