Windows Phone BingMapsDirections任务位置不带标签

发布于 2024-12-29 18:06:15 字数 537 浏览 6 评论 0原文

我想使用 BingMapsDirectionsTask 从当前位置导航到指定位置。 这是我的代码:

        BingMapsDirectionsTask bingMapsDirectionsTask = new BingMapsDirectionsTask();
        LabeledMapLocation lml = new LabeledMapLocation();
        lml.Location = location;
        bingMapsDirectionsTask.End = lml;
        bingMapsDirectionsTask.Show();

它不起作用,因为我没有任何标签,你可以看到这个屏幕截图: https://i.sstatic.net/HoqRm.png

我可以仅使用带有纬度的 BingMapsDirectionsTask /经度参数 ?

感谢您的回答

I want navigate from my current position, to a specified location using 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 :
https://i.sstatic.net/HoqRm.png

Can I use BingMapsDirectionsTask with just a latitude/longitude parameter ?

Thank's for your answers

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤千羽 2025-01-05 18:06:15

尝试使用这样的东西:

BingMapsDirectionsTask Direction = new BingMapsDirectionsTask();    
LabeledMapLocation lml = new LabeledMapLocation("Your location here", null)
Direction.End = lml;
Direction.Show();

Try using something like this:

BingMapsDirectionsTask Direction = new BingMapsDirectionsTask();    
LabeledMapLocation lml = new LabeledMapLocation("Your location here", null)
Direction.End = lml;
Direction.Show();
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文