Reading KML files issue

3 posts, 1 answers
  1. Mrn
    Mrn avatar
    29 posts
    Member since:
    Apr 2011

    Posted 23 Aug 2011 Link to this post

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

    Posted 26 Aug 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Mrn
    Mrn avatar
    29 posts
    Member since:
    Apr 2011

    Posted 29 Aug 2011 Link to this post

    Thanks!
Back to Top