<?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 GraphicLayer not displaying resulting FeatureSet in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/graphiclayer-not-displaying-resulting-featureset/m-p/284673#M6767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to display the results of my featureset in the GraphicsLayer but nothing is displaying. I know the query is working because of the count on the features in the resulting featureset. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
 xmlns:s="library://ns.adobe.com/flex/spark" 
 xmlns:mx="library://ns.adobe.com/flex/mx"
 xmlns:esri="http://www.esri.com/2008/ags"
 pageTitle="Salt Lake County Recorder"&amp;gt;
 
 &amp;lt;s:layout&amp;gt;
&amp;nbsp; &amp;lt;s:VerticalLayout gap="10"
&amp;nbsp;&amp;nbsp; horizontalAlign="center"
&amp;nbsp;&amp;nbsp; paddingBottom="20"
&amp;nbsp;&amp;nbsp; paddingLeft="25"
&amp;nbsp;&amp;nbsp; paddingRight="25"
&amp;nbsp;&amp;nbsp; paddingTop="20"/&amp;gt;
 &amp;lt;/s:layout&amp;gt;
 
 &amp;lt;fx:Script&amp;gt;
 &amp;lt;![CDATA[
&amp;nbsp; import com.esri.ags.Graphic;
&amp;nbsp; import com.esri.ags.FeatureSet;
&amp;nbsp; import mx.controls.Alert;
&amp;nbsp; import mx.rpc.AsyncResponder;
&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function doQuery():void
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; queryTask.execute(query, new AsyncResponder(onResult, onFault));
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; function onResult(featureSet:FeatureSet, token:Object = null):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; // No code needed in this simple sample, since the
&amp;nbsp;&amp;nbsp;&amp;nbsp; // graphiclayer is bound to the query result using
&amp;nbsp;&amp;nbsp;&amp;nbsp; // graphicProvider="{queryTask.executeLastResult.features}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; function onFault(info:Object, token:Object = null):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show(info.toString(), "Query Problem");
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
 ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;[/INDENT] 
 &amp;lt;fx:Declarations&amp;gt;
&amp;nbsp; &amp;lt;esri:QueryTask id="queryTask"
&amp;nbsp;&amp;nbsp; showBusyCursor="true"
&amp;nbsp;&amp;nbsp; url="http://&amp;lt;mydataurl&amp;gt;/MapServer/4"
&amp;nbsp;&amp;nbsp; useAMF="false" /&amp;gt;
&amp;nbsp; &amp;lt;esri:Query id="query"
&amp;nbsp;&amp;nbsp; outSpatialReference="{myMap.spatialReference}"
&amp;nbsp;&amp;nbsp; returnGeometry="true"
&amp;nbsp;&amp;nbsp; where="PARCEL like '%{qText.text}%'"&amp;gt;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;!--&amp;lt;esri:Query id="query"
&amp;nbsp;&amp;nbsp; outSpatialReference="{myMap.spatialReference}"
&amp;nbsp;&amp;nbsp; returnGeometry="true"
&amp;nbsp;&amp;nbsp; text="{qText.text}"&amp;gt;
&amp;nbsp;&amp;nbsp; --&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;!--where="PARCEL like '0827131011%'"--&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;!----&amp;gt;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;/esri:Query&amp;gt;
&amp;nbsp; &amp;lt;esri:InfoSymbol id="infoSymbol1"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:infoRenderer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fx:Component&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:VBox&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text="{data.PARCEL}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text="{data.own_name}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:VBox&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fx:Component&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:infoRenderer&amp;gt;
&amp;nbsp; &amp;lt;/esri:InfoSymbol&amp;gt;
 &amp;lt;/fx:Declarations&amp;gt;
 
 &amp;lt;s:Panel 
&amp;nbsp; height="60" 
&amp;nbsp; title="Query a layer (search parcel number)" 
&amp;nbsp; backgroundColor="#ECE7E7"&amp;gt;
&amp;nbsp; &amp;lt;s:layout&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;s:HorizontalLayout/&amp;gt;
&amp;nbsp; &amp;lt;/s:layout&amp;gt;
&amp;nbsp; &amp;lt;s:TextInput id="qText"
&amp;nbsp;&amp;nbsp; enter="doQuery()"
&amp;nbsp;&amp;nbsp; text="0827131011" 
&amp;nbsp;&amp;nbsp; width="100%"/&amp;gt;
&amp;nbsp; &amp;lt;s:Button click="doQuery()" label="Do Query" /&amp;gt;
 &amp;lt;/s:Panel&amp;gt;
 
 &amp;lt;esri:Map id="myMap" &amp;gt;
&amp;nbsp; &amp;lt;esri:ArcGISDynamicMapServiceLayer url="http://&amp;lt;mydataurl&amp;gt;/MapServer" /&amp;gt;
&amp;nbsp; &amp;lt;!--&amp;lt;esri:GraphicsLayer id="myGraphicsLayer" symbol="{infoSymbol1}" /&amp;gt;--&amp;gt;
&amp;nbsp; &amp;lt;esri:GraphicsLayer id="myGraphicsLayer" symbol="{infoSymbol1}" graphicProvider="{queryTask.executeLastResult.features}" /&amp;gt;
 &amp;lt;/esri:Map&amp;gt; 
&amp;lt;/s:Application&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Nov 2010 19:39:51 GMT</pubDate>
    <dc:creator>RickBaker</dc:creator>
    <dc:date>2010-11-16T19:39:51Z</dc:date>
    <item>
      <title>GraphicLayer not displaying resulting FeatureSet</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/graphiclayer-not-displaying-resulting-featureset/m-p/284673#M6767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to display the results of my featureset in the GraphicsLayer but nothing is displaying. I know the query is working because of the count on the features in the resulting featureset. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
 xmlns:s="library://ns.adobe.com/flex/spark" 
 xmlns:mx="library://ns.adobe.com/flex/mx"
 xmlns:esri="http://www.esri.com/2008/ags"
 pageTitle="Salt Lake County Recorder"&amp;gt;
 
 &amp;lt;s:layout&amp;gt;
&amp;nbsp; &amp;lt;s:VerticalLayout gap="10"
&amp;nbsp;&amp;nbsp; horizontalAlign="center"
&amp;nbsp;&amp;nbsp; paddingBottom="20"
&amp;nbsp;&amp;nbsp; paddingLeft="25"
&amp;nbsp;&amp;nbsp; paddingRight="25"
&amp;nbsp;&amp;nbsp; paddingTop="20"/&amp;gt;
 &amp;lt;/s:layout&amp;gt;
 
 &amp;lt;fx:Script&amp;gt;
 &amp;lt;![CDATA[
&amp;nbsp; import com.esri.ags.Graphic;
&amp;nbsp; import com.esri.ags.FeatureSet;
&amp;nbsp; import mx.controls.Alert;
&amp;nbsp; import mx.rpc.AsyncResponder;
&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function doQuery():void
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; queryTask.execute(query, new AsyncResponder(onResult, onFault));
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; function onResult(featureSet:FeatureSet, token:Object = null):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; // No code needed in this simple sample, since the
&amp;nbsp;&amp;nbsp;&amp;nbsp; // graphiclayer is bound to the query result using
&amp;nbsp;&amp;nbsp;&amp;nbsp; // graphicProvider="{queryTask.executeLastResult.features}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; function onFault(info:Object, token:Object = null):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show(info.toString(), "Query Problem");
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
 ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;[/INDENT] 
 &amp;lt;fx:Declarations&amp;gt;
&amp;nbsp; &amp;lt;esri:QueryTask id="queryTask"
&amp;nbsp;&amp;nbsp; showBusyCursor="true"
&amp;nbsp;&amp;nbsp; url="http://&amp;lt;mydataurl&amp;gt;/MapServer/4"
&amp;nbsp;&amp;nbsp; useAMF="false" /&amp;gt;
&amp;nbsp; &amp;lt;esri:Query id="query"
&amp;nbsp;&amp;nbsp; outSpatialReference="{myMap.spatialReference}"
&amp;nbsp;&amp;nbsp; returnGeometry="true"
&amp;nbsp;&amp;nbsp; where="PARCEL like '%{qText.text}%'"&amp;gt;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;!--&amp;lt;esri:Query id="query"
&amp;nbsp;&amp;nbsp; outSpatialReference="{myMap.spatialReference}"
&amp;nbsp;&amp;nbsp; returnGeometry="true"
&amp;nbsp;&amp;nbsp; text="{qText.text}"&amp;gt;
&amp;nbsp;&amp;nbsp; --&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;!--where="PARCEL like '0827131011%'"--&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;!----&amp;gt;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;/esri:Query&amp;gt;
&amp;nbsp; &amp;lt;esri:InfoSymbol id="infoSymbol1"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:infoRenderer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fx:Component&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:VBox&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text="{data.PARCEL}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text="{data.own_name}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:VBox&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fx:Component&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:infoRenderer&amp;gt;
&amp;nbsp; &amp;lt;/esri:InfoSymbol&amp;gt;
 &amp;lt;/fx:Declarations&amp;gt;
 
 &amp;lt;s:Panel 
&amp;nbsp; height="60" 
&amp;nbsp; title="Query a layer (search parcel number)" 
&amp;nbsp; backgroundColor="#ECE7E7"&amp;gt;
&amp;nbsp; &amp;lt;s:layout&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;s:HorizontalLayout/&amp;gt;
&amp;nbsp; &amp;lt;/s:layout&amp;gt;
&amp;nbsp; &amp;lt;s:TextInput id="qText"
&amp;nbsp;&amp;nbsp; enter="doQuery()"
&amp;nbsp;&amp;nbsp; text="0827131011" 
&amp;nbsp;&amp;nbsp; width="100%"/&amp;gt;
&amp;nbsp; &amp;lt;s:Button click="doQuery()" label="Do Query" /&amp;gt;
 &amp;lt;/s:Panel&amp;gt;
 
 &amp;lt;esri:Map id="myMap" &amp;gt;
&amp;nbsp; &amp;lt;esri:ArcGISDynamicMapServiceLayer url="http://&amp;lt;mydataurl&amp;gt;/MapServer" /&amp;gt;
&amp;nbsp; &amp;lt;!--&amp;lt;esri:GraphicsLayer id="myGraphicsLayer" symbol="{infoSymbol1}" /&amp;gt;--&amp;gt;
&amp;nbsp; &amp;lt;esri:GraphicsLayer id="myGraphicsLayer" symbol="{infoSymbol1}" graphicProvider="{queryTask.executeLastResult.features}" /&amp;gt;
 &amp;lt;/esri:Map&amp;gt; 
&amp;lt;/s:Application&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 19:39:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/graphiclayer-not-displaying-resulting-featureset/m-p/284673#M6767</guid>
      <dc:creator>RickBaker</dc:creator>
      <dc:date>2010-11-16T19:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicLayer not displaying resulting FeatureSet</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/graphiclayer-not-displaying-resulting-featureset/m-p/284674#M6768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What happens if you don't set myGraphicsLayer's symbol? Can you also double-check that the layer's shape field is published so that the geometry is being returned?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 19:48:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/graphiclayer-not-displaying-resulting-featureset/m-p/284674#M6768</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-11-16T19:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicLayer not displaying resulting FeatureSet</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/graphiclayer-not-displaying-resulting-featureset/m-p/284675#M6769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, that worked! I removed the GraphicsLayer symbol setting and now I see the graphic layer displayed in the apparent default symbol. Apparently something wrong with my "infoSymbol1" definition??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 12:40:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/graphiclayer-not-displaying-resulting-featureset/m-p/284675#M6769</guid>
      <dc:creator>RickBaker</dc:creator>
      <dc:date>2010-11-17T12:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicLayer not displaying resulting FeatureSet</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/graphiclayer-not-displaying-resulting-featureset/m-p/284676#M6770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The InfoSymbol only works with point data. Are you returning polygons?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/symbols/InfoSymbol.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/symbols/InfoSymbol.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 15:51:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/graphiclayer-not-displaying-resulting-featureset/m-p/284676#M6770</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-11-17T15:51:25Z</dc:date>
    </item>
  </channel>
</rss>

