Parsing KML files

2 posts, 0 answers
  1. Bruce
    Bruce avatar
    2 posts
    Member since:
    Mar 2011

    Posted 30 Jul 2013 Link to this post

    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
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 31 Jul 2013 Link to this post

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