I'm working with Google Map Javascript API and I'm trying to create a custom Marker with a custom Icon which works with rotation,
var marker = new google.maps.Marker({
position: latlng,
map: this.map
});
marker.setIcon({
url:"assets/icon/nav.png",
//path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW,
scale: 1,
rotation: heading,
scaledSize: new google.maps.Size(35, 35),
});
The rotation attribute is working with google.maps.SymbolPath.XXXX as the line commented in the code but not with a custom Icon Image like I wrote in my code,
So I'm asking is there any solution to make custom icon image rotate ? Or to create a google.maps.SymbolPath from an image ?