【发布时间】:2016-04-15 15:13:40
【问题描述】:
我想根据 Bing 地图上的标题旋转我的 pushPin(标记)。 代码是:
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);
我可以在地图上绘制标记,但无法旋转标记。请任何人帮助。谢谢。
【问题讨论】:
-
关于openlayer动画的问题已经修复了jsFiddle demostackoverflow.com/questions/20410175/…
标签: javascript bing-maps