Draw Polyline between markers.

2 posts, 0 answers
  1. manoj
    manoj  avatar
    4 posts
    Member since:
    Aug 2016

    Posted 09 Jan 2017 Link to this post

    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" />

    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 asp.net radmap Please suggest.  

    Manoj Sahu.

  2. Marin Bratanov
    Marin Bratanov avatar
    4363 posts

    Posted 12 Jan 2017 Link to this post

    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.


    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.
Back to Top