This is a migrated thread and some comments may be shown as answers.

BingRouteProvider routepath points not visible on information layer

1 Answer 52 Views
Map
This is a migrated thread and some comments may be shown as answers.
Aaron Jessen
Top achievements
Rank 1
Aaron Jessen asked on 20 Aug 2011, 07:01 PM
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: 

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

1 Answer, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 24 Aug 2011, 04:04 PM
Hi Aaron Jessen,

Thank you for the information. This important part is definitely omitted in our documentation. If you check  the correspondent online demo (http://demos.telerik.com/silverlight/#Map/Routing) you will find that it sets RoutePathType.Points to the request options.
The responsible people are notified and the documentation will be updated.

Kind regards,
Andrey Murzov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Map
Asked by
Aaron Jessen
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or