I experienced a lot of downtime when trying to implement the routing feature with BingRouteProvider, as detailed in http://www.telerik.com/help/silverlight/radmap-features-routing.html .
The points that should have been displaying on my information layer (as shown in the ExecuteRouting() method) were not displaying at all (thusly - no route).
I found the solution and thought it might help someone else experiencing the same issue. This code worked for me:
The points that should have been displaying on my information layer (as shown in the ExecuteRouting() method) were not displaying at all (thusly - no route).
I found the solution and thought it might help someone else experiencing the same issue. This code worked for me:
Private Sub ExecuteRouting()
Dim request As New RouteRequest()
'+++++++ ADD THESE LINES +++++++++++
request.Options = New RouteOptions()
request.Options.RoutePathType = RoutePathType.Points
'+++++++++++++++++++++++++++++++++++
Dim sofia As New Location(42.7072638273239, 23.3318710327148)
Dim munich As New Location(48.1364169716835, 11.577525883913)
Dim amsterdam As New Location(52.3712052404881, 4.8920676112175)
request.Waypoints.Add(sofia)
request.Waypoints.Add(munich)
request.Waypoints.Add(amsterdam)
Me.routeProvider.CalculateRouteAsync(request)
End Sub
Thanks, as always, for the great controls!
Aaron T. Jessen