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

Designate route

3 Answers 118 Views
Map
This is a migrated thread and some comments may be shown as answers.
Michał
Top achievements
Rank 1
Michał asked on 25 Mar 2015, 07:58 AM
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ł

3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 27 Mar 2015, 07:55 AM
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.

 
0
Michał
Top achievements
Rank 1
answered on 27 Mar 2015, 09:01 AM
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ł
0
T. Tsonev
Telerik team
answered on 31 Mar 2015, 08:42 AM
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.

 
Tags
Map
Asked by
Michał
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Michał
Top achievements
Rank 1
Share this question
or