tm_pos function

Set the position of map components