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

Parsing KML files

1 Answer 50 Views
Map
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 30 Jul 2013, 08:55 PM
We are developing an application and we will be receiving KML files populated using folders. We want to put the points/polygons/areas/etc. that are defined in each folder on a different layer so the user can turn on/off data when the map becomes too cluttered. When I use KMLReader it returns all the objects and there is no way to determine which layer to put the information on. Is there an easy way to do this without putting each folder in a different file?

Thanks for any help you can give us.

sheilah

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 31 Jul 2013, 10:48 AM
Hi Bruce,

Unfortunately the KML Reader does not support the folder tags. I think you can use the Placemark.Name property of the ExtendedData. When you add special prefix such as the folder name with a underscore to each name tag of Placemark then you can determine the folder of the shape which is generated by KML Reader using this property.

Regards,
Andrey Murzov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Map
Asked by
Bruce
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or