0

我想在设备移动时更新路线,就像在导航中一样。但我不想在每次位置更改时都使用 RouteQuery 和 Map.AddRoute,如下所示。

    private void DrawRoute(GeoCoordinate newPosition)//
{
   RouteQuery query = new RouteQuery()
   {
      TravelMode = TravelMode.Driving,
      Waypoints = new List<GeoCoordinate>() { MainMap.Center, newPosition }
   };
   query.QueryCompleted += RouteQueryCompleted;
   query.QueryAsync();
   MainMap.Center = newPosition;
   lastCoordinate = newPosition;
}

有不同的方法吗?

4

0 回答 0