0

I am building a windows phone 8 using BingMapsDirectionsTask

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 between user current location and user inputed address.

4

1 回答 1

0

该功能不是内置的,并且不受 BingMapsDirectionsTask/MapsDirectionsTask 支持。

如果您想要此功能,您必须使用新的 WP8<Map />控件而不是使用启动器将其构建到您自己的应用程序中。阅读更多关于新地图控件@http ://www.developer.nokia.com/Resources/Library/Lumia/# !guide-to-the-maps.html;#toc_Mapcontrol

于 2013-02-14T00:32:20.317 回答