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

Draw Polyline between markers.

1 Answer 232 Views
Map
This is a migrated thread and some comments may be shown as answers.
manoj
Top achievements
Rank 1
manoj asked on 10 Jan 2017, 05:27 AM

Hi Team,
I Want to draw polyline between map markers using asp.net C# (web page) , i am using MapPolyline object but it is not working.

Aspx page code:
 <asp:RadMap RenderMode="Lightweight" runat="server" ID="RadMap1" Zoom="10" CssClass="MyMap" Height="700px">
 <CenterSettings Latitude="25.2854" Longitude="51.5310" />
 </asp:RadMap>

C# Code:
MapPolyline polyline = new MapPolyline()
            {
                Points = p,
                Stroke = new SolidColorBrush(c),
                StrokeThickness = 2,
            };
             
dynamicLayer.Items.Add(polyline);

Error: "The Type or namespace MapPolyline could not be found"

What is the possible way to draw polyline between markers on asp.net radmap Please suggest.  

Regrads
Manoj Sahu.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 12 Jan 2017, 01:43 PM

Hi Manoj,

The MapPolyline class does not exist in the Telerik.Web.UI assembly and RadMap does not offer such a built-in feature. The closest approach is to use your own GeoJSON data to draw paths, as is done in this demo: http://demos.telerik.com/aspnet-ajax/map/examples/functionality/cross-layer-integration/defaultcs.aspx.

Regards,

Marin Bratanov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Map
Asked by
manoj
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or