I am developing a simple map application , in which user can draw shapes (say, rectangle ) on map .The users also have the flexibility to rotate the shapes. .The part where I am stuck is that i need to know this angle of rotation , by which the user rotated the shapes before completecommand was executed. Has anyone figured this out before?