<?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: IdentifyTask with webmap from AGOL in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-webmap-from-agol/m-p/1445#M96</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andrei,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes the same approach will work for a query task - you'll just need to append the index for the layer you want to query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kelly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2013 16:39:38 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2013-02-15T16:39:38Z</dc:date>
    <item>
      <title>IdentifyTask with webmap from AGOL</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-webmap-from-agol/m-p/1442#M93</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doen anyone know how can I use Identify Task with a webmap from AGOL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IdentifyTask expects a URL to a layer, but using AGOL I only have a webmap ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 11:33:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-webmap-from-agol/m-p/1442#M93</guid>
      <dc:creator>AndreiGosman</dc:creator>
      <dc:date>2013-02-14T11:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask with webmap from AGOL</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-webmap-from-agol/m-p/1443#M94</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When working with web maps Popups are a good alternative to the identify task. Any popups defined in your web map will display in your web application. If you click on an area of the map with multiple features that have popups defined the popup window will display with navigation tools in the toolbar that let you move through the selected set of features. See the attached screen shot for an example of this behavior. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said you can use the identify task if you'd like. When you use the createMap function to create a map based on a web map you get access to lots of info in the response object including the map and the layers in the map. In the example below the layers are accessed using response.itemInfo.itemData.operationalLayers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esri.arcgis.utils.createMap(webmapid, "mapDiv").then(function(response){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layers = response.itemInfo.itemData.operationalLayers;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find more information about working with web maps here: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#intro_webmap" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#intro_webmap&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:04:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-webmap-from-agol/m-p/1443#M94</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-10T20:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask with webmap from AGOL</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-webmap-from-agol/m-p/1444#M95</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Kelly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx for your answer, it worked just fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose I can use the mechanism (your code snippet) for Query Task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 08:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-webmap-from-agol/m-p/1444#M95</guid>
      <dc:creator>AndreiGosman</dc:creator>
      <dc:date>2013-02-15T08:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyTask with webmap from AGOL</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-webmap-from-agol/m-p/1445#M96</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andrei,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes the same approach will work for a query task - you'll just need to append the index for the layer you want to query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kelly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 16:39:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identifytask-with-webmap-from-agol/m-p/1445#M96</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2013-02-15T16:39:38Z</dc:date>
    </item>
  </channel>
</rss>

