RadMap cant Load KML File

2 posts, 0 answers
  1. dravus peter
    dravus peter avatar
    3 posts
    Member since:
    Oct 2009

    Posted 06 May 2012 Link to this post


    I would like to load  a KML file  into RadMap.

    For this
     I use:
    this.informationLayer.Reader = new MapShapeReader();
    this.informationLayer.Reader.Source = new Uri("myTest.kml", UriKind.RelativeOrAbsolute);

    My VS always says:
    "Error:" Telerik.Windows.Controls.Map.MapShapeReaderBase "contains no definition of" source ", and there was no extension method 'Source' to be found ..." 

    I use the API / Docu from Telerik
    But what am I doing wrong? 

    I am use
    • Version 2012.1.326.1050
    • Telerik.Windows.Controls
    • Telerik.Windows.Controls.DataVisualization
    • Telerik.Windows.Data
    • Telerik.Windows.Controls.Map

    thanks for the help

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 10 May 2012 Link to this post

    Hello Dravus,

    I'm sorry, it seems that this topic is a bit behind the real functionality of the RadMap control. I'll notify the responsible people and the topic will be updated. The InformationLayer.Reader property has been changed some time ago. You can use the following code instead:

    this.informationLayer.Reader = new MapShapeReader()
        ClearLayer = false,
        Source = new Uri("myTest.kml", UriKind.RelativeOrAbsolute),
        SourceType = ShapeSourceType.Kml

    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top