BingRouteProvider routepath points not visible on information layer

2 posts, 1 answers
  1. Aaron Jessen
    Aaron Jessen avatar
    14 posts
    Member since:
    Feb 2009

    Posted 20 Aug 2011 Link to this post

    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
  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 24 Aug 2011 Link to this post

    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 >>

  3. DevCraft banner
Back to Top