<?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 Layer Definitions not applying in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/layer-definitions-not-applying/m-p/575073#M12962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a MapService with 4 layers that I'm trying to perform definition queries on, but I'm getting some unexpected behavior. One of the layers is simply not respecting the definition query, while the other three in the service are. I'm applying definition queries like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
var q:String = "TestID=4";
var ld:Array = new Array();
for(var x:int = 0;x&amp;lt;displayLayer.layerInfos.length;x++)
{
&amp;nbsp; ld.push(q);
}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
displayLayer.layerDefinitions = ld;
displayLayer.visible = true;
displayLayer.refresh();
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the layer definitions are applied, three of the layers properly show only the queried features, while one layer continues to show all of its features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea what is happening?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2011 22:19:51 GMT</pubDate>
    <dc:creator>AndrewLiles</dc:creator>
    <dc:date>2011-05-17T22:19:51Z</dc:date>
    <item>
      <title>Layer Definitions not applying</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/layer-definitions-not-applying/m-p/575073#M12962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a MapService with 4 layers that I'm trying to perform definition queries on, but I'm getting some unexpected behavior. One of the layers is simply not respecting the definition query, while the other three in the service are. I'm applying definition queries like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
var q:String = "TestID=4";
var ld:Array = new Array();
for(var x:int = 0;x&amp;lt;displayLayer.layerInfos.length;x++)
{
&amp;nbsp; ld.push(q);
}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
displayLayer.layerDefinitions = ld;
displayLayer.visible = true;
displayLayer.refresh();
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the layer definitions are applied, three of the layers properly show only the queried features, while one layer continues to show all of its features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea what is happening?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 22:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/layer-definitions-not-applying/m-p/575073#M12962</guid>
      <dc:creator>AndrewLiles</dc:creator>
      <dc:date>2011-05-17T22:19:51Z</dc:date>
    </item>
  </channel>
</rss>

