<?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 Re: Using the IdentifyTask with a WebMap from AGOL with the 4.x API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110500#M10278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert.&amp;nbsp; I didn't know it would just be a matter of pulling each individual URL.&amp;nbsp; I was thinking there would be a way to pass in all the layers from the WebMap at once.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I want to pull the data back for all 5 services on the WebMap, then I would just iterate through the layers and create a separate identify task for each one, correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 May 2017 19:52:32 GMT</pubDate>
    <dc:creator>TomFlahive</dc:creator>
    <dc:date>2017-05-04T19:52:32Z</dc:date>
    <item>
      <title>Using the IdentifyTask with a WebMap from AGOL with the 4.x API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110498#M10276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an ArcGIS Online WebMap with 5 web services on it and I would like to run an IdentifyTask so that I can obtain a list of all the features that fall under a clicked point.&amp;nbsp; I know that popups provide this same functionality of being able to identify all the features under a clicked point, but I am looking to present the data in a custom sidebar rather than a popup, so I figured using the IdentifyTask is the way to go.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A similar question has been asked and answered (by Kelly Hutchins) on how this might be done with the 3.x API (&lt;A _jive_internal="true" href="https://community.esri.com/message/69571" target="_blank"&gt;here&lt;/A&gt;), but I am trying to figure out how to do it with the 4.x API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The part I am stuck on is what to pass in to the IdentifyTask in place of a service URL, as shown in the Esri example:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// Create identify task for the specified map service&lt;/SPAN&gt;
identifyTask &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;IdentifyTask&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mapServiceURL&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can the IdentifyTask be used with an AGOL WebMap, and if so, what needs to be done to accomplish that?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:38:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110498#M10276</guid>
      <dc:creator>TomFlahive</dc:creator>
      <dc:date>2021-12-11T06:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using the IdentifyTask with a WebMap from AGOL with the 4.x API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110499#M10277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;That would be as simple as:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// get the first layer in the collection of operational layers in the WebMap&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// when the resources in the MapView have loaded.&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; featureLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; webmap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getItemAt&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍
identifyTask &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;IdentifyTask&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110499#M10277</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T06:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using the IdentifyTask with a WebMap from AGOL with the 4.x API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110500#M10278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert.&amp;nbsp; I didn't know it would just be a matter of pulling each individual URL.&amp;nbsp; I was thinking there would be a way to pass in all the layers from the WebMap at once.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I want to pull the data back for all 5 services on the WebMap, then I would just iterate through the layers and create a separate identify task for each one, correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 19:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110500#M10278</guid>
      <dc:creator>TomFlahive</dc:creator>
      <dc:date>2017-05-04T19:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using the IdentifyTask with a WebMap from AGOL with the 4.x API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110501#M10279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The thing to look out for is the IdentifyTask is looking for the mapservice url and not an individual layer url (i.e. http //servername/arcgis/rest/services/servicename/MapServer vs&amp;nbsp;&lt;SPAN&gt;http //servername/arcgis/rest/services/servicename/MapServer/1).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 19:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110501#M10279</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-05-04T19:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using the IdentifyTask with a WebMap from AGOL with the 4.x API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110502#M10280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about the case where you have a WebMap that has web services that may come from different sources (from different servers), so one web service might have 3 individual layers, and another web service from a different source may have 2 individual layers, and so on.&amp;nbsp; In that situation would I need an IdentifyTask for each service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 20:13:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110502#M10280</guid>
      <dc:creator>TomFlahive</dc:creator>
      <dc:date>2017-05-04T20:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using the IdentifyTask with a WebMap from AGOL with the 4.x API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110503#M10281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Correct one for each service (not each service layer).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 20:33:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110503#M10281</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-05-04T20:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using the IdentifyTask with a WebMap from AGOL with the 4.x API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110504#M10282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it.&amp;nbsp; Thanks Robert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 20:35:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-the-identifytask-with-a-webmap-from-agol/m-p/110504#M10282</guid>
      <dc:creator>TomFlahive</dc:creator>
      <dc:date>2017-05-04T20:35:43Z</dc:date>
    </item>
  </channel>
</rss>

