<?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 Restricting extent for a Feature Layer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/restricting-extent-for-a-feature-layer/m-p/215619#M5055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to restrict the geometry a Feature Layer can search within. I know I could do this if I was explicitly doing a query, but in this case, I am simply using the default "on demand" behavior. Essentially, no matter where the user navigates to on the map, I want to check that the "on demand" extent is within a larger, allowable extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To do this, I was going to listen to the "UPDATE_START" LayerEvent, and modify the geometry before it is passed back to the server. However, I cannot seem to find where I would modify that geometry. I have a reference to the layer ... any thoughts on where to go from here? Any help appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;TLDR&lt;/STRONG&gt;&lt;SPAN&gt;: I would like to be able to set "my_custom_geometry" for an "on demand" query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;.../arcgis/rest/services/Search/MapServer/0/query?f=json&amp;amp;geometry=my_custom_geometry...&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Clayton&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2011 12:57:45 GMT</pubDate>
    <dc:creator>ClaytonDonahue</dc:creator>
    <dc:date>2011-12-09T12:57:45Z</dc:date>
    <item>
      <title>Restricting extent for a Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/restricting-extent-for-a-feature-layer/m-p/215619#M5055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to restrict the geometry a Feature Layer can search within. I know I could do this if I was explicitly doing a query, but in this case, I am simply using the default "on demand" behavior. Essentially, no matter where the user navigates to on the map, I want to check that the "on demand" extent is within a larger, allowable extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To do this, I was going to listen to the "UPDATE_START" LayerEvent, and modify the geometry before it is passed back to the server. However, I cannot seem to find where I would modify that geometry. I have a reference to the layer ... any thoughts on where to go from here? Any help appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;TLDR&lt;/STRONG&gt;&lt;SPAN&gt;: I would like to be able to set "my_custom_geometry" for an "on demand" query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;.../arcgis/rest/services/Search/MapServer/0/query?f=json&amp;amp;geometry=my_custom_geometry...&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Clayton&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 12:57:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/restricting-extent-for-a-feature-layer/m-p/215619#M5055</guid>
      <dc:creator>ClaytonDonahue</dc:creator>
      <dc:date>2011-12-09T12:57:45Z</dc:date>
    </item>
  </channel>
</rss>

