<?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 buffer return fetures from all layers in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220103#M6863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am looking for a&amp;nbsp; modified search widget specify a line and/or line buffer on a specified distance and return the features from other layers found within the selected buffer. Is there anything out there close to this functionality? Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2012 17:28:02 GMT</pubDate>
    <dc:creator>LefterisKoumis</dc:creator>
    <dc:date>2012-04-12T17:28:02Z</dc:date>
    <item>
      <title>buffer return fetures from all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220103#M6863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am looking for a&amp;nbsp; modified search widget specify a line and/or line buffer on a specified distance and return the features from other layers found within the selected buffer. Is there anything out there close to this functionality? Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 17:28:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220103#M6863</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2012-04-12T17:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: buffer return fetures from all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220104#M6864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lefteris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The eSearch does exactly that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/rc/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e"&gt;http://www.arcgis.com/rc/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt; as shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]0[/ATTACH]&lt;/SPAN&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 17:34:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220104#M6864</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-04-12T17:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: buffer return fetures from all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220105#M6865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Lefteris,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; The eSearch does exactly that.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/rc/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e"&gt;http://www.arcgis.com/rc/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Don't forget to &lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt; on this post and to &lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt; as shown below:&lt;BR /&gt;[ATTACH=CONFIG]0[/ATTACH]&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you. But how do you capture in the buffer, features from other layers and list them?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 23:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220105#M6865</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2012-04-12T23:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: buffer return fetures from all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220106#M6866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lefteris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; It is pretty straight forward. &lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Choose the graphical search.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Choose the layer that you will be searching.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Check the buffer graphic checkbox and define the unit of measure and distance.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;If you are only going to draw a single graphic then uncheck enable multi-part graphics.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Draw a graphic using one of the draw tools.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;If you unchecked the enable multi-part graphics in step 4 then that is it, if you left it checked then you have to click the search button.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;I have some pretty in depth documentation pdfs in the download that you need to look at.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 02:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220106#M6866</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-04-13T02:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: buffer return fetures from all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220107#M6867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Lefteris,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; It is pretty straight forward. &lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Choose the graphical search.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Choose the layer that you will be searching.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Check the buffer graphic checkbox and define the unit of measure and distance.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;If you are only going to draw a single graphic then uncheck enable multi-part graphics.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Draw a graphic using one of the draw tools.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;If you unchecked the enable multi-part graphics in step 4 then that is it, if you left it checked then you have to click the search button.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;I have some pretty in depth documentation pdfs in the download that you need to look at.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the replay Robert. Sorry I didn't make myself clear. I am looking for the tool that will display all features within a buffer from ALL layers that have features within. The tool as it stands now, you have to select a layer at each time and apply the buffer. I'd like to take the chance and thank you so much for all your work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 19:21:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220107#M6867</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2012-04-16T19:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: buffer return fetures from all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220108#M6868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lefteris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; There is no such widget as there is currently no good Flex API path for doing this. The find task will search all layers in a map service but it will only search based on a string and not geometry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 19:26:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220108#M6868</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-04-16T19:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: buffer return fetures from all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220109#M6869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Lefteris,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; There is no such widget as there is currently no good Flex API path for doing this. The find task will search all layers in a map service but it will only search based on a string and not geometry.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ok thanks. that's too bad. I was able to do something like this using javascript in arcims.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 19:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220109#M6869</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2012-04-16T19:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: buffer return fetures from all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220110#M6870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd say there is a Flex API path for doing this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the IdentifyTask with IdentifyParameters where you've set the geometry to the buffer and specified which layers you want to search by using LayerIds (for example all layers in the mapservice).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or have I misunderstood something?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 06:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220110#M6870</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2012-04-18T06:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: buffer return fetures from all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220111#M6871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you are correct Mattias. Using the identifyTask will do the trick as long as you have all your layers in one service. Combine multiple services (WebmapServers, WMS, WFS) in to one identifier task would have been great. Something for 3.1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition to setting your buffered line as geometry in the identifyparameters you also need to set the layeroptions to "all". Something like his:&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//Executes when drawing is completed assuming you draw your line
private function drawEnd(event:DrawEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var geom:Geometry = event.graphic.geometry;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.tolerance = 3;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.width = map.width;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.height = map.height;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.layerOption = "all";
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.mapExtent = map.extent;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyTask.showBusyCursor = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Bufferering drawing
&amp;nbsp;&amp;nbsp;&amp;nbsp; var bufferParameters:BufferParameters = new BufferParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferParameters.geometries = [ geom ];
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferParameters.distances = [ &amp;lt;your buffer distance value&amp;gt; ];
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferParameters.unit = GeometryService.UNIT_METER;
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferParameters.outSpatialReference = map.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferParameters.unionResults = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; geometryService.addEventListener(GeometryServiceEvent.BUFFER_COMPLETE, bufferCompleteHandler1);
&amp;nbsp;&amp;nbsp;&amp;nbsp; geometryService.buffer(bufferParameters);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; function bufferCompleteHandler1(event:GeometryServiceEvent):void
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each (var polygon:Polygon in event.result)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometryService.removeEventListener(GeometryServiceEvent.BUFFER_COMPLETE, bufferCompleteHandler1);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.geometry = polygon;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyTaskIntresseletaren.execute(identifyParameters)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;lt;esri:GeometryService id="geometryService" url="&amp;lt;your geometry service&amp;gt; "/&amp;gt;
&amp;nbsp; 
&amp;lt;esri:IdentifyParameters id="identifyParameters"/&amp;gt;
&amp;nbsp; 
&amp;lt;esri:IdentifyTask id="identifyTask"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concurrency="last"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showBusyCursor="true"
 executeComplete="identifyTask_executeCompleteHandler(event)"/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will work as long as you don't combine your spatial search with a text search.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;text search - use findtask&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spatial search - use identifytask&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;text and spatial search - use querytask but can only search on one layer and field at a time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;searching in one layer only - use querytask, much faster than findtask and identifytask&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Karl M&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Växjö municipality&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:44:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220111#M6871</guid>
      <dc:creator>KarlMagnusson</dc:creator>
      <dc:date>2021-12-11T10:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: buffer return fetures from all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220112#M6872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You both are right, I though about that after I wrote that post but got to busy to post about the IdentifyTask. Needless to say Lefteris what looking for a developed widget that will do this and the exact workflow is not available in any widget that has been published by esri or the code gallery.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 11:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220112#M6872</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-04-18T11:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: buffer return fetures from all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220113#M6873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think you are correct Mattias. Using the identifyTask will do the trick as long as you have all your layers in one service. Combine multiple services (WebmapServers, WMS, WFS) in to one identifier task would have been great. Something for 3.1?&lt;BR /&gt;In addition to setting your buffered line as geometry in the identifyparameters you also need to set the layeroptions to "all". Something like his:&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//Executes when drawing is completed assuming you draw your line
private function drawEnd(event:DrawEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var geom:Geometry = event.graphic.geometry;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.tolerance = 3;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.width = map.width;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.height = map.height;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.layerOption = "all";
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.mapExtent = map.extent;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyTask.showBusyCursor = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Bufferering drawing
&amp;nbsp;&amp;nbsp;&amp;nbsp; var bufferParameters:BufferParameters = new BufferParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferParameters.geometries = [ geom ];
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferParameters.distances = [ &amp;lt;your buffer distance value&amp;gt; ];
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferParameters.unit = GeometryService.UNIT_METER;
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferParameters.outSpatialReference = map.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferParameters.unionResults = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; geometryService.addEventListener(GeometryServiceEvent.BUFFER_COMPLETE, bufferCompleteHandler1);
&amp;nbsp;&amp;nbsp;&amp;nbsp; geometryService.buffer(bufferParameters);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; function bufferCompleteHandler1(event:GeometryServiceEvent):void
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each (var polygon:Polygon in event.result)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometryService.removeEventListener(GeometryServiceEvent.BUFFER_COMPLETE, bufferCompleteHandler1);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParameters.geometry = polygon;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyTaskIntresseletaren.execute(identifyParameters)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;lt;esri:GeometryService id="geometryService" url="&amp;lt;your geometry service&amp;gt; "/&amp;gt;
&amp;nbsp; 
&amp;lt;esri:IdentifyParameters id="identifyParameters"/&amp;gt;
&amp;nbsp; 
&amp;lt;esri:IdentifyTask id="identifyTask"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concurrency="last"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showBusyCursor="true"
 executeComplete="identifyTask_executeCompleteHandler(event)"/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This will work as long as you don't combine your spatial search with a text search.&lt;BR /&gt;&lt;BR /&gt;text search - use findtask&lt;BR /&gt;spatial search - use identifytask&lt;BR /&gt;text and spatial search - use querytask but can only search on one layer and field at a time&lt;BR /&gt;searching in one layer only - use querytask, much faster than findtask and identifytask&lt;BR /&gt;&lt;BR /&gt;Karl M&lt;BR /&gt;Växjö municipality&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you. I thought that a loop to go through all the layers are identified in an array could do just that. I will work with your code to see if that works. Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:44:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/buffer-return-fetures-from-all-layers/m-p/220113#M6873</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2021-12-11T10:44:07Z</dc:date>
    </item>
  </channel>
</rss>

