I want to rotate my pushPin(marker) based on heading on the Bing Map. Code is :
var location = new Microsoft.Maps.Location(data[index].latitude, data[index].longitude);
var pushpinOptions = {
icon: "/images/carMarker.png",
width: 50,
height: 50,
anchor: new Microsoft.Maps.Point(10, 40),
typeName: 'carMarker'
};
map.entities.remove(carPin);
carPin = new Microsoft.Maps.Pushpin(location, pushpinOptions);
map.entities.push(carPin);
I am able to draw the markers over the map but I am unable to rotate the markers. Please any one help. Thankyou.