javascript - Google Maps API custom marker animation and orientation along path -
i trying create google map app shows route source destination in straight line ('as crow flies'). have general app working. can put in start , end destination , draw line start finish. also, have generic marker moves along straight line route start finish. want replace generic marker custom drawn marker. also, custom marker oriented in line route. in other words if custom marker car want car facing right direction goes along route. i see demo, not sure how doing this. http://www.morethanamap.com/demos/visualization/flights any suggestions? thanks! you'll need set iconsequence polyline. iconsequence requires symbol, example-svg car : https://upload.wikimedia.org/wikipedia/commons/f/f6/car.svg (© pypaertv ) demo: function initialize() { var origin = new google.maps.latlng(39.904211, 116.407394), destination = new google.maps.latlng(40.4167754, -3.703790), map = new google.maps.map(document.getelementbyid('map-canvas'), {...