Improved method processNewAngle in Map class.