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                        }           }); 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -