I need to rotate a Google Maps Marker. I'm using the JavaScript v3 API. What is the best way of doing this? I've had a look at some other similar questions but there seems to be no clear answer, or if there is it's for v2.
I'm looking for a neat/tidy way to rotate the marker icon.
Edit:
As this question has started to rise in views quite dramatically I have decided to edit it to make the result of my question clearer.