javascript - Rotate google map marker image -
this question has answer here:
marker1 = new google.maps.marker( { position: mylatlng, map: map, icon: { path: google.maps.symbolpath.forward_open_arrow, scale: 2, rotation: degree } });
i trying rotate marker image on google map in degree.
i using above code nice showing forward_open_arrow code of path: google.maps.symbolpath.forward_open_arrow, want add image here instead of arrow
such car image can rotate when vehicle move in direction. have degree of rotation there way put image instead of arraow
try this
marker1 = new google.maps.marker( { position: mylatlng, map: map, icon: { url: "/path/to/your/image.jpg", scale: 2, rotation: degree } });