changed to get headings from headingNumber attribute instead of
calculating from position.