Im having some problem rotating my marker at google maps api. Im currently doing:
<script>
function initialize() {
var mapProp = {
center: new google.maps.LatLng(51.508742, -0.120850),
zoom: 4,
minZoom: 2,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map"), mapProp);
var myLatlng = new google.maps.LatLng(-51.508742, -0.120850);
var image = 'http://wcdn1.dataknet.com/static/resources/icons/set73/f3eef3d2.png';
var marker = new google.maps.Marker({
position: myLatlng,
icon: {
path: google.maps.SymbolPath.BACKWARD_OPEN_ARROW,
scale: 10
},
rotation: 50,
map: map
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
But this dosn't work sadly, I know the heading and that is 50 degrees as you can see in the "rotate". How can I do this?