<?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 layerdefinitions in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/layerdefinitions/m-p/572776#M12894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to update layerdefinitions at runtime? Im inclined to say no and I would have to run a query task in conjunction with a graphics layer to show the features I want filtered. For what I need to do, it would be nice to just update the layerdefinition for the layer directly but i'm not sure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Gary&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Sep 2010 20:20:53 GMT</pubDate>
    <dc:creator>GaryBushek</dc:creator>
    <dc:date>2010-09-29T20:20:53Z</dc:date>
    <item>
      <title>layerdefinitions</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/layerdefinitions/m-p/572776#M12894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to update layerdefinitions at runtime? Im inclined to say no and I would have to run a query task in conjunction with a graphics layer to show the features I want filtered. For what I need to do, it would be nice to just update the layerdefinition for the layer directly but i'm not sure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Gary&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 20:20:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/layerdefinitions/m-p/572776#M12894</guid>
      <dc:creator>GaryBushek</dc:creator>
      <dc:date>2010-09-29T20:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: layerdefinitions</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/layerdefinitions/m-p/572777#M12895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try something like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; protected function defQry_clickHandler(event:MouseEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var lyrDef:Array = ["", "", "FieldName = '" + textInput.text + "'"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; mapSvc.layerDefinitions = lyrDef;
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;

 &amp;lt;fx:Declarations&amp;gt;
&amp;nbsp; &amp;lt;!-- Place non-visual elements (e.g., services, value objects) here --&amp;gt;
 &amp;lt;/fx:Declarations&amp;gt;
 
 &amp;lt;s:layout&amp;gt;
&amp;nbsp; &amp;lt;s:VerticalLayout gap="10"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; horizontalAlign="center"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; paddingBottom="20"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; paddingLeft="20"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; paddingRight="20"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; paddingTop="20"/&amp;gt;
 &amp;lt;/s:layout&amp;gt;
 &amp;lt;esri:Map id="Map"&amp;gt;
&amp;nbsp; &amp;lt;esri:ArcGISDynamicMapServiceLayer id="mapSvc" url="yourURL"/&amp;gt;
 &amp;lt;/esri:Map&amp;gt;
 &amp;lt;s:TextInput id="textInput"/&amp;gt;
 &amp;lt;s:Button id="defQry" click="defQry_clickHandler(event)" label="Click to change layer definition"/&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:39:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/layerdefinitions/m-p/572777#M12895</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2021-12-12T00:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: layerdefinitions</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/layerdefinitions/m-p/572778#M12896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, this worked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 17:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/layerdefinitions/m-p/572778#M12896</guid>
      <dc:creator>GaryBushek</dc:creator>
      <dc:date>2010-10-08T17:47:37Z</dc:date>
    </item>
  </channel>
</rss>

