Rotates map data either -90 degrees (anti-clockwise), 90 degrees (clockwise) or 180 degrees. Useful when you want to define one section of a map and then re-use it in slightly different layouts.
rotateData (Arrayval, Numbermode)
ArrayvalThe map data array to rotate.
NumbermodeEither -90, 90 or 180 to denote the type of rotation to perform.