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

Reading KML files issue

2 Answers 83 Views
Map
This is a migrated thread and some comments may be shown as answers.
Mrn
Top achievements
Rank 1
Mrn asked on 23 Aug 2011, 03:57 PM
Hello,

I have some existing .kml files I'd like to import from a RadMap. Such files have <GroundOverlay> element tags and icons defined within them that do not seem to be loaded on the map... are they not supported? How could I read them manually?

On the other hand, I have some <Placemark> elements with CDATA within their nested <description> tags that I do not either know how to read... 

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 26 Aug 2011, 08:42 AM
Hi Mrn,

Currently the map control supports the following KML elements:
1. Point
2. LineString
3. Polygon (including outerBoundaryIs and innerBoundaryIs)
4. Styles: IconStyle (including hotspot), LineStyle, PolyStyle
5. BalloonStyle
6. ExtendedData
7. Partial support for MultiGeometry tag.

Unfortunately the KML-reader does not support the GroundOverlay tags. If you need to use them, then you have to create this functionality by yourself.

When the Placemark element contains the name and / or description tags then the map shape reader creates the "Placemark.Name" and "Placemark.Description" properties in the ExtendedData property of created shapes. So, you can get it using the ExtendedData.GetValue method. For more information please take a look at the following documentation topic:
http://www.telerik.com/help/silverlight/radmap-features-extended-data.html#Extended_Data_and_MapShapeReader

Regards,
Andrey Murzov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Mrn
Top achievements
Rank 1
answered on 29 Aug 2011, 03:12 PM
Thanks!
Tags
Map
Asked by
Mrn
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Mrn
Top achievements
Rank 1
Share this question
or