Designate route

4 posts, 0 answers
  1. Michał
    Michał avatar
    2 posts
    Member since:
    Mar 2015

    Posted 25 Mar 2015 Link to this post

    How can I designate route based on marker list and show route on map? At now I have only added markes.

    Code form my View:
    @(Html.Kendo().Map()
        .Name("Bing")
        .Center(53.4252981, 14.5526117)
        .Zoom(12)
        .Layers(layers =>
        {
            layers.Add()
                .Type(MapLayerType.Bing)
                .ImagerySet(MapLayersImagerySet.Road)           
                .Key("key");
            layers.Add()
                .Type(MapLayerType.Marker)
                .DataSource(dataSource => dataSource
                      .Read(read => read.Action("_StoreLocations", "Home"))
                )
                .LocationField("LatLng")
                .TitleField("Title");
            layers.Add()
                .Type(MapLayerType.Shape)
                .DataSource(dataSource => dataSource
                      .Read(read => read.Action("_StoreLocations", "Home"))
                )
                .LocationField("LatLng")
                .TitleField("Title");
        })
    )

    Best regards,
    Michał
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 27 Mar 2015 Link to this post

    Hello,

    The shape layer can be used to draw lines from GeoJSON.
    I've got a sample snippet in the dojo that demonstrates the format of the data.

    I hope this helps.

    Regards,
    T. Tsonev
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Michał
    Michał avatar
    2 posts
    Member since:
    Mar 2015

    Posted 27 Mar 2015 in reply to T. Tsonev Link to this post

    Hi,

    Thanks for your response.  I known about possibility add layer with route basing on GeoJSON file. But my question is:
    Can I designate route in real time (or generate GeoJSON data in real time)?

    Basicly I'd like to get effect like in this sample http://docs.telerik.com/devtools/silverlight/controls/radmap/features/routing.html (button "Find route" and designate route in real time) but in ASP.NET MVC

    Best regards,
    Michał
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 31 Mar 2015 Link to this post

    Hi,

    Right, I see what you mean. The map does not provide integration with routing providers.

    Please, file a request for this feature on our UserVoice portal if you have minute.
    This will help us gauge the overall interest and prioritize.


    Regards,
    T. Tsonev
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top
UI for ASP.NET MVC is VS 2017 Ready