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

Draw Polyline between markers.

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

Hi Team,
I Want to draw polyline between map markers using 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" />

C# Code:
MapPolyline polyline = new MapPolyline()
                Points = p,
                Stroke = new SolidColorBrush(c),
                StrokeThickness = 2,

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

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

Manoj Sahu.

1 Answer, 1 is accepted

Sort by
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:


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.
Asked by
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question