Back port of rotation fix in Map.

If no rotation information in the header, the default is 0.