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

问题描述

  

  

我正在使用BingMapsDirectionsTask构建Windows Phone 8

i am building a windows phone 8 using BingMapsDirectionsTask

BingMapsDirectionsTask任务=新的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.

推荐答案

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

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


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

09-25 06:12