<?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 Identify Task on Point/Line Features in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-point-line-features/m-p/265528#M24518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want the user to click on a point/line feature on the map and display the feature's attributes in a grid. I am using Identify Task to perform this action but for some reason no attributes are being returned. My code snippet is below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var identifyTask = new esri.tasks.IdentifyTask("Rest API URL");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var identifyParams = new esri.tasks.IdentifyParameters();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.tolerance = 5;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.returnGeometry = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.layerIds = [10];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.geometry = evt.mapPoint;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.mapExtent = map.extent;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.width&amp;nbsp; = map.width;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.height = map.height;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyTask.execute(identifyParams,results);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure what I am doing wrong, any comments/ideas would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 May 2010 19:13:30 GMT</pubDate>
    <dc:creator>MuhammadRiaz</dc:creator>
    <dc:date>2010-05-18T19:13:30Z</dc:date>
    <item>
      <title>Identify Task on Point/Line Features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-point-line-features/m-p/265528#M24518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want the user to click on a point/line feature on the map and display the feature's attributes in a grid. I am using Identify Task to perform this action but for some reason no attributes are being returned. My code snippet is below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var identifyTask = new esri.tasks.IdentifyTask("Rest API URL");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var identifyParams = new esri.tasks.IdentifyParameters();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.tolerance = 5;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.returnGeometry = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.layerIds = [10];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.geometry = evt.mapPoint;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.mapExtent = map.extent;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.width&amp;nbsp; = map.width;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.height = map.height;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyTask.execute(identifyParams,results);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure what I am doing wrong, any comments/ideas would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 19:13:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-point-line-features/m-p/265528#M24518</guid>
      <dc:creator>MuhammadRiaz</dc:creator>
      <dc:date>2010-05-18T19:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Task on Point/Line Features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-point-line-features/m-p/265529#M24519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your snippet shows only the identify settings but tells nothing about the callback function you defined to extract the attributes and create the grid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples/find_map_datagrid.html"&gt;this&lt;/A&gt;&lt;SPAN&gt; example. It is about find task, but you can adapt it at your case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the linked example the callback function, called showResults(), takes the task results as a parameter and populate an array with the attributes through a for cicle. Then the attribute's array is used in dojo datastore item property.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 06:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-point-line-features/m-p/265529#M24519</guid>
      <dc:creator>AlessioDi_Lorenzo</dc:creator>
      <dc:date>2010-05-19T06:58:12Z</dc:date>
    </item>
  </channel>
</rss>

