Question: 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.

You can't
=========

Answer: 
A marker image cant be rotated.. you will need to create new images of all your possible rotations and replace the marker image as required with a rotate image file.. using marker.setIcon()

<https://developers.google.com/maps/documentation/javascript/reference#Marker>
How about? chart-API

<https://chart.googleapis.com/chart?chst=d_map_spin&chld=0.25|38|FF0000|12|text-1|text-2>

It rotates a red spin marker by 38degree scaled 25%,and labeled with two lines texts.