title: How to rotate marker icon image in Google Maps Javascript API v3
body: <p>I am trying to rotate marker icon image but rotation angle doesn't seem to have any effect on the orientation of the icon image.</p>
  
  <p>I found that giving svg path instead of image for marker would make the rotation work like intended.</p>
  
  <p>But is there any way to make rotation work when using image?</p>
  
  <p><a href="http://jsfiddle.net/devnigel/Lay214fp/1/" rel="nofollow noreferrer">jsfiddle of the issue</a></p>
  
  <pre><code>function updateMap(bearing) {
  // var bearing = 135;
  
  console.log(bearing);
  var icon = marker.getIcon();
  icon.rotation = bearing;
  marker.setIcon(icon);
  
  console.log(marker);
  }
  function initialize() {
     initMap({ Latitude:37.4419, Longitude: -122.1419});
  }
  </code></pre>