<?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 Selecting features from a feature layer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-features-from-a-feature-layer/m-p/350915#M8308</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'd like to select features on a map click from a feature layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the selectFeatures() function of the featureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So in a mapClick event handler I wrote the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
query.geometry = event.mapPoint;
query.relationParam = com.esri.ags.tasks.supportClasses.Query.SPATIAL_REL_INTERSECTS;
featureLayer.selectFeatures(query);
Alert.show("Selection performed");
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;When I click on a feature from the featureLayer, the response is empty (as it appears in firebug). And the feature is not selected on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any example that I could follow?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2013 10:48:36 GMT</pubDate>
    <dc:creator>ab1</dc:creator>
    <dc:date>2013-01-21T10:48:36Z</dc:date>
    <item>
      <title>Selecting features from a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-features-from-a-feature-layer/m-p/350915#M8308</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'd like to select features on a map click from a feature layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the selectFeatures() function of the featureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So in a mapClick event handler I wrote the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
query.geometry = event.mapPoint;
query.relationParam = com.esri.ags.tasks.supportClasses.Query.SPATIAL_REL_INTERSECTS;
featureLayer.selectFeatures(query);
Alert.show("Selection performed");
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;When I click on a feature from the featureLayer, the response is empty (as it appears in firebug). And the feature is not selected on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any example that I could follow?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 10:48:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-features-from-a-feature-layer/m-p/350915#M8308</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2013-01-21T10:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting features from a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-features-from-a-feature-layer/m-p/350916#M8309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This should work if the geometry type of the layer is polygon; otherwise you'll need to turn the point into a small extent so that it can search for line or point features that intersect that extent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2013 15:57:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/selecting-features-from-a-feature-layer/m-p/350916#M8309</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2013-02-09T15:57:48Z</dc:date>
    </item>
  </channel>
</rss>

