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:
Best regards,
Michał
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ł