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

RadMap cant Load KML File

1 Answer 49 Views
Map
This is a migrated thread and some comments may be shown as answers.
dravus peter
Top achievements
Rank 1
dravus peter asked on 06 May 2012, 11:06 PM
hi,

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

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 10 May 2012, 07:27 AM
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
};

Regards,
Andrey Murzov
the Telerik team

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

Tags
Map
Asked by
dravus peter
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or