[英]Windows Phone BingMapsDirectionsTask location without label
I want navigate from my current position, to a specified location using BingMapsDirectionsTask. 我想使用BingMapsDirectionsTask从当前位置导航到指定位置。 Here is my code : 这是我的代码:
BingMapsDirectionsTask bingMapsDirectionsTask = new BingMapsDirectionsTask();
LabeledMapLocation lml = new LabeledMapLocation();
lml.Location = location;
bingMapsDirectionsTask.End = lml;
bingMapsDirectionsTask.Show();
It doesn't work because I don't have any label, you can see this screenshot : http://i.stack.imgur.com/HoqRm.png 因为我没有标签,所以它不起作用,您可以看到以下屏幕截图: http : //i.stack.imgur.com/HoqRm.png
Can I use BingMapsDirectionsTask with just a latitude/longitude parameter ? 我可以仅使用纬度/经度参数使用BingMapsDirectionsTask吗?
Thank's for your answers 感谢您的回答
Try using something like this: 尝试使用如下所示的内容:
BingMapsDirectionsTask Direction = new BingMapsDirectionsTask();
LabeledMapLocation lml = new LabeledMapLocation("Your location here", null)
Direction.End = lml;
Direction.Show();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.