我想使用 BingMapsDirectionsTask 从当前位置导航到指定位置。 这是我的代码:
BingMapsDirectionsTask bingMapsDirectionsTask = new BingMapsDirectionsTask();
LabeledMapLocation lml = new LabeledMapLocation();
lml.Location = location;
bingMapsDirectionsTask.End = lml;
bingMapsDirectionsTask.Show();
它不起作用,因为我没有任何标签,你可以看到这个截图: http://i.stack.imgur.com/HoqRm.png
我可以使用仅带有纬度/经度参数的 BingMapsDirectionsTask 吗?
谢谢你的回答
最佳答案
尝试使用这样的东西:
BingMapsDirectionsTask Direction = new BingMapsDirectionsTask();
LabeledMapLocation lml = new LabeledMapLocation("Your location here", null)
Direction.End = lml;
Direction.Show();
关于c# - 没有标签的 Windows Phone BingMapsDirectionsTask 位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9052707/