2012-01-29 63 views
2

我想使用BingMapsDirectionsTask从当前位置导航到指定位置。 这里是我的代码:Windows Phone BingMapsDirectionsTask没有标签的位置

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

它不工作,因为我没有任何标签,你可以看到这个截图: http://i.stack.imgur.com/HoqRm.png

我可以使用BingMapsDirectionsTask只有经/纬度参数?

感谢的对你的答案

+0

问题解决了,我认为这是与地图API的错误...... 你必须CultureInfo的更改为en-US ! – user887691 2012-01-29 17:54:54

回答

1

使用这样的尝试:

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