我使用了文档并且我遵循了所有步骤,但是当我尝试实现代码时,我看不到任何内容。
BingMapsDirectionsTask bingMapsDirectionsTask = new BingMapsDirectionsTask();
// You can specify a label and a geocoordinate for the end point.
GeoCoordinate spaceNeedleLocation = new GeoCoordinate(-33.3935,-070.6215);
LabeledMapLocation spaceNeedleLML = new LabeledMapLocation("camino las rosas,santiago,chile", spaceNeedleLocation);
// If you set the geocoordinate parameter to null, the label parameter is used as a search term.
// LabeledMapLocation spaceNeedleLML = new LabeledMapLocation("Space Needle", null);
bingMapsDirectionsTask.End = spaceNeedleLML;
// If bingMapsDirectionsTask.Start is not set, the user's current location is used as the start point.
bingMapsDirectionsTask.Show();