Windows Phone 8中的可拖动路线 [英] dragable route in windows phone 8

查看:52
本文介绍了Windows Phone 8中的可拖动路线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  

  

我正在使用BingMapsDirectionsTask构建Windows Phone 8

i am building a windows phone 8 using BingMapsDirectionsTask



ShowMyLocationOnTheMap();
LabeledMapLocation开始=新LabeledMapLocation(myCrntAddres,新System.Device.Location.GeoCoordinate());
LabeledMapLocation end = new LabeledMapLocation(desLoc.Text,new System.Device.Location.GeoCoordinate());

task.Start = start;
task.End = end;

BingMapsDirectionsTask task = new BingMapsDirectionsTask();


ShowMyLocationOnTheMap();

LabeledMapLocation start = new LabeledMapLocation(myCrntAddres, new System.Device.Location.GeoCoordinate());
LabeledMapLocation end = new LabeledMapLocation(desLoc.Text, new System.Device.Location.GeoCoordinate());
task.Start = start;
task.End = end;

代码运行正常,但我想添加功能,以便用户可以在已映射的地图上拖动路线,该路线已经被用户当前位置和用户输入 地址.

the code is working fine, but i want to add functionality so that a user can drag route on map which is already mapped b/w user current location and user inputed address.

推荐答案

BingMapsDirectionsTask启动内置(默认)地图应用程序,并且您的应用程序被挂起,直到用户退出地图应用程序并返回您的应用程序.

The BingMapsDirectionsTask launches the built-in (default) map application and your application is suspended until the user exits the map application and returns to your application.

 如果要处理用户与地图的交互,则需要使用地图控件 内部您的应用程序.

  If you want to handle user-interaction with the map you would need to use the Map control inside your application.


这篇关于Windows Phone 8中的可拖动路线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆