[OpenLayers-Users] KML files - gx:Track custom data

Roxana Grigore roxananmaria at yahoo.com
Fri Apr 15 05:38:08 EDT 2011

I'm using KML files to show the track with some waypoints.
I would like to display the custom data elements from gx:Track.
According to the KML specification (http://code.google.com/apis/kml/documentation/kmlreference.html#gxtrack), the KML custom data should be something like this:
<gx:Track id="ID">
  <!-- specific to Track -->
      <!-- kml:altitudeModeEnum: clampToGround, relativeToGround, or absolute -->
      <!-- or, substitute gx:altitudeMode: clampToSeaFloor, relativeToSeaFloor -->
  <when>...</when>                         <!-- kml:dateTime -->
  <gx:coord>...</gx:coord>                 <!-- string -->
  <gx:angles>...</gx:angles>               <!-- string -->
    <SchemaData schemaUrl="anyURI">
      <gx:SimpleArrayData kml:name="string">
        <gx:value>...</gx:value>            <!-- string -->

I took a look at the OpenLayers examples with gx:Track and at the Changeset 10633 (http://trac.osgeo.org/openlayers/changeset/10633), and 'speed' is simply added in gx:track. (Does this follow the KML reference?)
Also, I've noticed that OL offers support for ExtendedData of Placemark.
Is it possible to access ExtendedData from gx:Track?
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110415/2e17fb33/attachment.html

More information about the Users mailing list