<?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 Feature layer from json in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-from-json/m-p/4067#M93</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi I have been given a URL which gives the data in json format. The result is showing me four layers(3 polygon layers and 1 point layer). My main aim is to display the features on the map and be able to query them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I am using a JSON task, getting a json object , looping through all the features and storing them in graphics, adding them to a graphicLayer and displaying them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. If i have to query for any feature or attribute then what kind of layer do I need to create from the data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I am getting a featureSet through the following: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; var myFeatureSet:FeatureSet = new FeatureSet(layers.featureCollection.layers&lt;I&gt;.featureSet.features);&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. But how to i get the layer details? I am using this line for now but it doesnt work..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var myLayerDetails:LayerDetails =&amp;nbsp; layers.featureCollection.layers&lt;I&gt;.layerDefinition;&lt;/I&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2013 06:21:41 GMT</pubDate>
    <dc:creator>NigelDsouza</dc:creator>
    <dc:date>2013-07-03T06:21:41Z</dc:date>
    <item>
      <title>Feature layer from json</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-from-json/m-p/4067#M93</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi I have been given a URL which gives the data in json format. The result is showing me four layers(3 polygon layers and 1 point layer). My main aim is to display the features on the map and be able to query them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I am using a JSON task, getting a json object , looping through all the features and storing them in graphics, adding them to a graphicLayer and displaying them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. If i have to query for any feature or attribute then what kind of layer do I need to create from the data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I am getting a featureSet through the following: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; var myFeatureSet:FeatureSet = new FeatureSet(layers.featureCollection.layers&lt;I&gt;.featureSet.features);&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. But how to i get the layer details? I am using this line for now but it doesnt work..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var myLayerDetails:LayerDetails =&amp;nbsp; layers.featureCollection.layers&lt;I&gt;.layerDefinition;&lt;/I&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 06:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-from-json/m-p/4067#M93</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2013-07-03T06:21:41Z</dc:date>
    </item>
  </channel>
</rss>

