Fixing the broken rotation and polyline pan coordinates bug