<?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: Identify Info Window/Tabs with 14 layers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116996#M10915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;I've had a similar issue in the past.&amp;nbsp; I ended up issuing an Identify task for the active tab.&amp;nbsp; When the user switched tabs, I would send another request for the layer that corresponded to the newly active tab.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also a good idea! But an info window with 14 tabs makes me cringe.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2012 23:27:23 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-09-05T23:27:23Z</dc:date>
    <item>
      <title>Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116993#M10912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My application is based on jsapi version3.0. It features a GIS Server service called "All_Services2012" which has 14 layers. An 'on-click' event identifies the 14 layers and displays them in an info window with tabs. The problem is that it takes between 35-45 seconds for the info window to display.&amp;nbsp; I'm afraid that the client will not want to wait that long for the information to come up. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to add an "hour glass" or somthing to show the process is working?&amp;nbsp; Better yet, what can I do to speed up the info window display?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if maybe the duplication of the variable declaration &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(var i=0, il=layerResults.features.length; i&amp;lt;il; i++)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in each 'case'&amp;nbsp; was&amp;nbsp; part of the problem. If so, how would I structure the code?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would it be better to have the client turn on the layers he would like to identify? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would very much appreciate someone looking at the attached code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The identify portion&amp;nbsp; is based on this sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/find/find_drilldown.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/find/find_drilldown.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 22:12:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116993#M10912</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-09-05T22:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116994#M10913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dojo has a Progress Bar that is pretty simple to use.&amp;nbsp; You could kick it off when the user clicks the map and then hide it during the callback from the service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've had a similar issue in the past.&amp;nbsp; I ended up issuing an Identify task for the active tab.&amp;nbsp; When the user switched tabs, I would send another request for the layer that corresponded to the newly active tab.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 23:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116994#M10913</guid>
      <dc:creator>GeorgeSimpson</dc:creator>
      <dc:date>2012-09-05T23:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116995#M10914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Would it be better to have the client turn on the layers he would like to identify? &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Absolutely, yes. The performance issue you're seeing is likely caused by one or both of the following:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;the server querying 14 layers for features&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;sending features from 14 layers across the network&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;It's likely a combination of both. The fastest way to improve performance is to do less stuff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked at how much data is returned to the client per identify operation? You can see this info in the chrome dev tools network tab or in firefox/firebug's network tab. Also, showing a client features from 14 different layers is a bad idea from a user experience point of view...navigating 14 tabs to sort through information would be painful, IMO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, in this case, optimizing your JavaScript loop(s) is premature.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 23:25:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116995#M10914</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-09-05T23:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116996#M10915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;I've had a similar issue in the past.&amp;nbsp; I ended up issuing an Identify task for the active tab.&amp;nbsp; When the user switched tabs, I would send another request for the layer that corresponded to the newly active tab.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also a good idea! But an info window with 14 tabs makes me cringe.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 23:27:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116996#M10915</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-09-05T23:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116997#M10916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may be interested in the code I just finished - basically doing away with tabs and re-creating the old ArcIMS html viewer look - see screen shot&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17513[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code does away with any hard coding in the script.&amp;nbsp; It takes ALL exposed fields and displays them (although not system fields like shape, ID etc), using their aliases, as defined in the MXD.&amp;nbsp; Also, it looks at the sublayer description to see if you want a specific field to act as contents in a hyperlink - so adding "&lt;/SPAN&gt;&lt;A href="http://www.eastdevon.gov.uk/my_neighbourhood?uprn="&gt;http://www.eastdevon.gov.uk/my_neighbourhood?uprn=&lt;/A&gt;&lt;SPAN&gt;£UPRN£" in to the description will substitute the value of the UPRN filed for the string £UPRN£ (£ chosen as a delimiter as it is never used in javascript)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reply here if you want the code - still a bit rough around the edges.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, unless you really NEED the geometry, you can speed things up with returnGeometry = false or by simplifying what is returned by increasing the maxAllowableOffset (see &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/identifyparameters.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/identifyparameters.htm&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 08:00:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116997#M10916</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2012-09-06T08:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116998#M10917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you all for your responses, they are appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;George, I like the idea of having a Progress Bar.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a sample on how to incorporate that into an identify event?&amp;nbsp;&amp;nbsp; It would be great whether one had two layers or 14!&amp;nbsp; (I don't mean to make you cringe, Derek).&amp;nbsp; Deep down I knew I was overtaxing the services and network by requesting that amount of data.&amp;nbsp; I guess I just needed to hear it from a pro. I'll also take your tips for posting code or html samples to heart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;George, I also like the idea of issuing an Identify task for the active tab or layer.&amp;nbsp; Would you be willing to share code on how you solved your issue with identify? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I need to quickly replace out ArcIMS viewers I am interested in your code Adrian.&amp;nbsp; I would like to see how you achieved that old ArcIMS viewer look without IMS.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point I do need the geometry so I'll have to follow through on some of the above options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 19:40:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116998#M10917</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-09-06T19:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116999#M10918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's some code I used to create a progress bar for querying multiple layers.&amp;nbsp; This code is old, but should give you an idea.&amp;nbsp; When calling show(numParts), numParts is the number of layers.&amp;nbsp; This will divide the progress bar into parts that will show each when each stage is complete.&amp;nbsp; When a search is done on a layer, you can call update() which will change the progress bar to show how much of the operation is complete&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var ProgressBar = function() {

&amp;nbsp;&amp;nbsp;&amp;nbsp; var _id;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var _bar = dijit.byId("progressBar");
&amp;nbsp;&amp;nbsp;&amp;nbsp; var _numParts;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var _progress;

&amp;nbsp;&amp;nbsp;&amp;nbsp; var _show = function(numParts) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (numParts) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _bar.update({ indeterminate: false, maximum: numParts, progress: 0 });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _progress = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _numParts = numParts;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _bar.update({ indeterminate: true });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _progress = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _numParts = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.style("progressBarContainer", "display", "block");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.style("waitingDiv", "display", "block");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; centerElement(dojo.byId("divMapTabs"), dojo.byId("progressBarContainer"));
&amp;nbsp;&amp;nbsp;&amp;nbsp; };

&amp;nbsp;&amp;nbsp;&amp;nbsp; var _hide = function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.style("progressBarContainer", "display", "none");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.style("waitingDiv", "display", "none");
&amp;nbsp;&amp;nbsp;&amp;nbsp; };

&amp;nbsp;&amp;nbsp;&amp;nbsp; var _update = function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _progress++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _bar.update({ progress: (_progress) });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (_progress &amp;gt;= _numParts) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _hide();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; };

&amp;nbsp;&amp;nbsp;&amp;nbsp; return {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; show: function(num) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _show(num);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; update: function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _update();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hide: function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _hide();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; };

};

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:52:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/116999#M10918</guid>
      <dc:creator>GeorgeSimpson</dc:creator>
      <dc:date>2021-12-11T06:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117000#M10919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't put together the code for the tabs since my code is so spread out.&amp;nbsp; You'll have to store the geometry that you used for the identify, and have an event for when a tab is selected that will fire a new identify task.&amp;nbsp; You'll also have to have a way for each tab to know which layer it corresponds to.&amp;nbsp; I actually used a dropdown instead of tabs when I did this and each value in the dropdown actually pointed to a collection of layers.&amp;nbsp; For instance, one value was "Historic Properties", but actually represented 3 layers (points,lines,polys).&amp;nbsp; That allowed me to have fewer options in the dropdown and provided information to the user that was grouped logically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The general idea for you is something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

var geom; //store the shape used for the identify task
var map; //the map
var tabs;//collection of tabs that each corresponds to a layer

//when tab is selected
//create identify task for corresponding layer using geom
//display results

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117000#M10919</guid>
      <dc:creator>GeorgeSimpson</dc:creator>
      <dc:date>2021-12-11T06:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117001#M10920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's a link to the public version (limited data) of the actual application.&amp;nbsp; You'll see how I handled the Identify and the Progress Bar.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://fortress.wa.gov/dahp/wisaard/"&gt;https://fortress.wa.gov/dahp/wisaard/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 21:09:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117001#M10920</guid>
      <dc:creator>GeorgeSimpson</dc:creator>
      <dc:date>2012-09-06T21:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117002#M10921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;Dorothea &lt;BR /&gt;&lt;BR /&gt;Here's my code.&amp;nbsp; Hopefully I've not missed anything from it.&amp;nbsp; Like you I will be having many layers.&amp;nbsp; Our current ArcIMS internal system has about 50 feature layers and about 12 raster layers.&amp;nbsp; Obviously not all on at once, but adding a layer in ArcIMS is a task, so I wanted to simplify it for my replacement.&lt;BR /&gt;&lt;BR /&gt;If you require the feature I've added to use the MXD layer description to power a hyperlink, then you need to add this to your init function&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(dynamicMapServiceLayer, "onLoad", function () {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var content = ""
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //return the layer descriptions into an array - we use this later for the info dialog to generate hyperlinks
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.forEach(dynamicMapServiceLayer.layerInfos, function (layer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var restAPIServicePage = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: mapservice2 + "/" + layer.id + "?f=json",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; callbackParamName: "callback",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load: function (data) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LayerDescriptions[layer.id] = data.description;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.io.script.get(restAPIServicePage);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })

&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;&lt;BR /&gt;&lt;BR /&gt;I can't claim credit for that - see&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2396&amp;amp;t=295945" rel="nofollow noopener noreferrer" target="_blank"&gt; this post on the old forums&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;You'll also need a few "var"s at the start of your code&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var LayerDescriptions = []
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;(maybe more, but you'll need to work them out)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;Then reference the attached file (renamed with .js&amp;nbsp; extension)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;If you want to use the hyperlink feature then add, to your description a valid, full URL, including parameter, but surround where you&amp;nbsp; want the value of a field with the field alias (see earlier post for example)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;Hopefully that'll all work - it is still a bit rough - as it stands it will fail if one layer name is a substring of another "So if you have a layer called "Wards" and another "County Wards" it will get confused,but the bit where it checks if the result is in a new layer or not can easily be re-written to use layer ID.&lt;BR /&gt;&lt;BR /&gt;The one other suggestion to improving return speed is to look at your data.&amp;nbsp; Is it all in an SDE?&amp;nbsp; If any shapefiles then have they got good spatial indexes?&amp;nbsp; Do you have any very large polygons that get returned a lot? I had this issue on one of my maps, one polygon covering most of our district.&amp;nbsp; Returning the geometry of this took about the time you have got.&amp;nbsp; So for just that one feature I created a duplicate polygon with simplified features (if you haven't got ArcINFO license, you haven't got this feature , but QGIS can do it for free) - this layer was added to a different service, which was used purely for the ID task.&amp;nbsp; A bit of a bodge but worked.&lt;BR /&gt;&lt;BR /&gt;Have fun&lt;BR /&gt;&lt;BR /&gt;ACM&lt;BR /&gt;&lt;BR /&gt;PS Just looked at the file - the test and create popup function are not needed, and looking at my screen shot I realize I haven't got the code working that alternates the row format - but I'm sure that that is a quick fix, moving my row counter increment. - I'll add any new version, plus my CSS sometime later, when I've got it working&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:52:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117002#M10921</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2021-12-11T06:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117003#M10922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;updated file and CSS - revised screen shot showing alternating styles&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17547[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 12:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117003#M10922</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2012-09-07T12:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117004#M10923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I will be having fun working through all the offered suggestions.&amp;nbsp; Adrian, all our Services data exist on the SDE and I work using the ArcInfo platform so I may have to take a look at simplifying polygon features.&amp;nbsp; Your code (from that old forum post) is really intriguing and I will definitely be using it in another application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;George, I love how you structured the identify window with the "Show me" drop-down list and link buttons.&amp;nbsp; How did you incorporate the drop down list?&amp;nbsp; Are all your identify layers in one service? The "Identify" button is also a nice feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the snippet on the Progress Bar.&amp;nbsp; I will try that out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 15:29:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117004#M10923</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-09-07T15:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117005#M10924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Adrian, I just saw your new post.&amp;nbsp; Thank you for the new files.&amp;nbsp; Will take some time today to go through the added info....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 15:40:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117005#M10924</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-09-07T15:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117006#M10925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dorothea, All of my layers are in one service.&amp;nbsp; I have tables in the database which dictate what users have permissions to view.&amp;nbsp; When the user logs in, I query the database and get a list of what we called "Result Groups" that are the logical groupings of layers.&amp;nbsp; These values are what you see in the dropdown.&amp;nbsp; On the client, there are objects called ResultGroups that I use to interact with the other elements such as layers and their related business data tables, along with the reports, images, scanned documents, etc.&amp;nbsp; You could probably populate the dropdown with the layers themselves, or use group layers in your service.&amp;nbsp; If you open the application and look at it through Firebug, you can add breakpoints and follow everything that is going on behind the scenes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 16:45:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117006#M10925</guid>
      <dc:creator>GeorgeSimpson</dc:creator>
      <dc:date>2012-09-07T16:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117007#M10926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="color: #444444; font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Dorothea - just a thought I had this morning.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #444444; font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Have you the ability to test in both Chrome and IE7 or IE8?&amp;nbsp; If so, then is there any difference in speed?&amp;nbsp; If there is a speed difference (and I'd hope Chrome would be faster) then it will be down to some JavaScript issue, as Chrome is so much faster than IE7/8.&amp;nbsp; If there isn't much time difference, then the issue, as you suspect, is the time the server is spent processing the request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #444444; font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #444444; font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 07:14:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117007#M10926</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2012-09-10T07:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Info Window/Tabs with 14 layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117008#M10927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good morning,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your thought Adrian.&amp;nbsp; I honestly haven't taken the time to look at the Chrome development interface and tools but I do intend to. I really do need to hone my development skills.&amp;nbsp; Right now I am restructuring my application to only Identify the layers that are turned on in the table of contents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also been trying to incorporate a progress function so the user knows the application is working.&amp;nbsp; I have opted for a progress icon versus a bar.&amp;nbsp; It works for the opening of my application but doesn't show up during the identify event.&amp;nbsp; Where should the&amp;nbsp; "show" and "hide"&amp;nbsp; portions&amp;nbsp; of the progress bar function be inserted to make it work for the identify process specifically?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 14:29:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-info-window-tabs-with-14-layers/m-p/117008#M10927</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-09-11T14:29:49Z</dc:date>
    </item>
  </channel>
</rss>

