Activate compass

If you hold your device upright, the panorama is automatically aligned with the direction of the compass.

If you hold your device flat, you can manually adjust the panorama by using touch gestures.