marker1 = new google.maps.Marker( { position: myLatlng, map: map, icon: { path: google.maps.SymbolPath.FORWARD_OPEN_ARROW, scale: 2, rotation: degree } });
I am trying to rotate the marker image on a Google map to some extent.
I use the code above, this is good, but it shows the FORWARD_OPEN_ARROW code : google.maps.SymbolPath.FORWARD_OPEN_ARROW , but I want to add an image here instead of an arrow
for example, an image of a car, so it can be rotated when the car moves in a certain direction. I have a degree of rotation, so is there any way to put an image instead of arraow
source share