<?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: Generic Identify in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636657#M59503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks Jeff...Yes i totally agree with you. I wish map click could return something more than mappoint like clicked graphic/layer etc...or map object has event like getAllvisible layers instead of getting all layers..&lt;BR /&gt;Thanks again&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree, unfortunately without querying the map (i.e. looping through the layers) there is no way to know which layer you clicked. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A map.visibleLayerIds would be a very useful property, however.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you dont mind marking my response as an answer, i would appreciate it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2012 15:19:06 GMT</pubDate>
    <dc:creator>JeffPace</dc:creator>
    <dc:date>2012-05-02T15:19:06Z</dc:date>
    <item>
      <title>Generic Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636652#M59498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a generic identify tool, which finds out which layer was clicked and then return all the attributes...by getting layers and layerIDs just by clicking on the map....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am going to work on this but i thought should check if anybody already did something similar...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 13:57:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636652#M59498</guid>
      <dc:creator>ZahidChaudhry</dc:creator>
      <dc:date>2012-05-02T13:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636653#M59499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a generic identify tool, which finds out which layer was clicked and then return all the attributes...by getting layers and layerIDs just by clicking on the map....&lt;BR /&gt;I am going to work on this but i thought should check if anybody already did something similar...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no identify dijit.&amp;nbsp; There is an identify task, however, that you can pass an onclick and will let you choose ALL, TOP, or VISIBILE to identify.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 14:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636653#M59499</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-05-02T14:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636654#M59500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There is no identify dijit.&amp;nbsp; There is an identify task, however, that you can pass an onclick and will let you choose ALL, TOP, or VISIBILE to identify.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes but you have to specify the URL and then choose layers...is it a way that you click on map, get all the visible layers and then use all those layers to do the identify?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This way i can write a function where i can pass all the visible layers at map click and then iterate through each layer and get results...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 14:46:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636654#M59500</guid>
      <dc:creator>ZahidChaudhry</dc:creator>
      <dc:date>2012-05-02T14:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636655#M59501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes but you have to specify the URL and then choose layers...is it a way that you click on map, get all the visible layers and then use all those layers to do the identify?&lt;BR /&gt;&lt;BR /&gt;This way i can write a function where i can pass all the visible layers at map click and then iterate through each layer and get results...&lt;BR /&gt;&lt;BR /&gt;thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately you have to do it programmatically.&amp;nbsp; There are advantages and disadvantages to this.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Disadvantage - you have to write it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Advantage - you can identify non -visible layers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically you have to take an evt/mappoint and loop through all the map layers and do an identify on each.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;loosely:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var ids = map.layerIds;
dojo.forEach(ids, function(id) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layer = this.map.getLayer(id);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layer.visible==true){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //do identify on layer.url
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636655#M59501</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2021-12-12T03:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636656#M59502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeff...Yes i totally agree with you. I wish map click could return something more than mappoint like clicked graphic/layer etc...or map object has event like getAllvisible layers instead of getting all layers..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 15:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636656#M59502</guid>
      <dc:creator>ZahidChaudhry</dc:creator>
      <dc:date>2012-05-02T15:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636657#M59503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks Jeff...Yes i totally agree with you. I wish map click could return something more than mappoint like clicked graphic/layer etc...or map object has event like getAllvisible layers instead of getting all layers..&lt;BR /&gt;Thanks again&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree, unfortunately without querying the map (i.e. looping through the layers) there is no way to know which layer you clicked. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A map.visibleLayerIds would be a very useful property, however.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you dont mind marking my response as an answer, i would appreciate it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 15:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636657#M59503</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-05-02T15:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636658#M59504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I agree, unfortunately without querying the map (i.e. looping through the layers) there is no way to know which layer you clicked. &lt;BR /&gt;&lt;BR /&gt;A map.visibleLayerIds would be a very useful property, however.&lt;BR /&gt;&lt;BR /&gt;If you dont mind marking my response as an answer, i would appreciate it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so after three days of brain storming, I am able to write a generic js that can detect all the visible layers in the map (on Click), do identify, remove on click event, and then display all results into a popup window...very similar to what you see on arcgis online identify.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But My special message to ESRI, please provide us a pure javascript API and let us decided what library i wana use....because documentation on dojo is so crappy that it doesn't make any sense to me...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 18:08:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generic-identify/m-p/636658#M59504</guid>
      <dc:creator>ZahidChaudhry</dc:creator>
      <dc:date>2012-05-04T18:08:05Z</dc:date>
    </item>
  </channel>
</rss>

