Generate map file