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

Get placemark name in kml file?

1 Answer 129 Views
Map
This is a migrated thread and some comments may be shown as answers.
Fredrik
Top achievements
Rank 1
Fredrik asked on 30 Sep 2010, 10:07 AM
Hello !!!

Using a kmlreader. How can I read the placemark name tag or description tag in the kml file?.
Need it to display some MapPintPoints with the text from kml file.
Example from my kml file.

<Placemark id="0">
      <Snippet maxLines="0">
      </Snippet>
      <name>01</name>
      <description>Test</description>
      <visibility>1</visibility>
      <open>0</open>
      <MultiGeometry>
        <Polygon>
.
.
.

Regards

Fredrik


1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 01 Oct 2010, 03:33 PM
Hi Fredrik,

Current version of KmlReader copies the value of the "name" tag to the Text property of MapPinPoint. It is used for KML Point element only.
We have the following opened PITS issue about KML name tag of Placemark:
http://www.telerik.com/support/pits.aspx#/public/silverlight/2656

The 2010 Q3 version of RadMap will contain additional functionality.
Each map shape and map pin points will contain the ExtendedData property. The extended data will be created from the KML ExtendedData tag and to additional it will have Placemark.Name and Placemark.Description properties.

Best wishes,
Andrey Murzov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Map
Asked by
Fredrik
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or