<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Sample Code - method to obtain KML extendedData from KMLLayer using JS API. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-code-method-to-obtain-kml-extendeddata-from/m-p/33803#M2758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The JS API V2.4 added the KMLLayer class to create a layer based on a KML file (.kml,.kmz). It supports the ExtendedData feature attributes from JS API V2.5. The ExtendedData can be obtained by using the "attributes" of an object, such as: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dojo.forEach(graphics, function(graphic){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; console.log(graphic.attributes.City);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The attached code sample shows how to obtain KML extendedData from KMLLayer using JS API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2012 21:38:57 GMT</pubDate>
    <dc:creator>FengZhang2</dc:creator>
    <dc:date>2012-07-02T21:38:57Z</dc:date>
    <item>
      <title>Sample Code - method to obtain KML extendedData from KMLLayer using JS API.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-code-method-to-obtain-kml-extendeddata-from/m-p/33803#M2758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The JS API V2.4 added the KMLLayer class to create a layer based on a KML file (.kml,.kmz). It supports the ExtendedData feature attributes from JS API V2.5. The ExtendedData can be obtained by using the "attributes" of an object, such as: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dojo.forEach(graphics, function(graphic){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; console.log(graphic.attributes.City);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The attached code sample shows how to obtain KML extendedData from KMLLayer using JS API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 21:38:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-code-method-to-obtain-kml-extendeddata-from/m-p/33803#M2758</guid>
      <dc:creator>FengZhang2</dc:creator>
      <dc:date>2012-07-02T21:38:57Z</dc:date>
    </item>
  </channel>
</rss>

