Open your track in PT2, and press SHIFT+W. A window appears. Change the filename and/or output location, if you want. When you press "generate map", PT2 shows you some coordinates: copy them to your track's textfile into "world -> map transformation matrix". (at "map details"-section)
However, before those coordinates is the "map pixelmap name": write the name of the generated map picture here, and put the picture file to your track's Pix16-folder.
// MAP DETAILS
FigureHate_map.PIX // Map pixelmap name in Pix16-folder
2.641 , 0 , 0 // World -> map transformation matrix (the coords which PT2 will show)
0 , 0 , 0
0 , 1.782 , 0.001
320.8 , 240.0 , 0