<?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: What is the reason for using both layerids and layer_option_all in identifyparams in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-reason-for-using-both-layerids-and/m-p/37019#M3074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm still not clear as to whether both parameters should be included or not. The API says that by specifying layerids then only those layers will be identified. It doesn't say anything about whether the layers are visible or not. Whereas the layer_option parameter is about visibility.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I discovered that it does help to use both the layerids and layer_option_all. In my particular application I was identifying two featurelayers from one mapservice. An identify operation was only returning the results from one layer even though I specified both layers in identifyParams.layerIds = [3,4] and I knew that it should be picking up a feature from the second layer; When I added identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL; the results from both layers came back. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, the sample from the original posting may be correct, and all that might be needed is a clearer explanation of how these two parameters work together.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2012 19:52:17 GMT</pubDate>
    <dc:creator>MikeOnzay</dc:creator>
    <dc:date>2012-06-08T19:52:17Z</dc:date>
    <item>
      <title>What is the reason for using both layerids and layer_option_all in identifyparams?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-reason-for-using-both-layerids-and/m-p/37016#M3071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the identify sample &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm&lt;/A&gt;&lt;SPAN&gt;, the code shows using both specific layerids and the option to use all. It seems like it should be one or the other.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;identifyParams.layerIds = [0,2];
identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-reason-for-using-both-layerids-and/m-p/37016#M3071</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2021-12-10T21:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: What is the reason for using both layerids and layer_option_all in identifyparams</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-reason-for-using-both-layerids-and/m-p/37017#M3072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds like a bug/typo in the sample. The default value for layerOption is that only the top-most visible layer is identified. So the sample should probably specify the visible layers and set the layerOption to LAYER_OPTION_VISIBLE instead of all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 19:29:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-reason-for-using-both-layerids-and/m-p/37017#M3072</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2012-05-24T19:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is the reason for using both layerids and layer_option_all in identifyparams</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-reason-for-using-both-layerids-and/m-p/37018#M3073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sounds like a bug/typo in the sample. The default value for layerOption is that only the top-most visible layer is identified. So the sample should probably specify the visible layers and set the layerOption to LAYER_OPTION_VISIBLE instead of all.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm still not clear as to whether both parameters should be included or not. The API says that by specifying layerids then only those layers will be identified. It doesn't say anything about whether the layers are visible or not. Whereas the layer_option parameter is about visibility.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 13:24:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-reason-for-using-both-layerids-and/m-p/37018#M3073</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2012-05-25T13:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: What is the reason for using both layerids and layer_option_all in identifyparams</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-reason-for-using-both-layerids-and/m-p/37019#M3074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm still not clear as to whether both parameters should be included or not. The API says that by specifying layerids then only those layers will be identified. It doesn't say anything about whether the layers are visible or not. Whereas the layer_option parameter is about visibility.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I discovered that it does help to use both the layerids and layer_option_all. In my particular application I was identifying two featurelayers from one mapservice. An identify operation was only returning the results from one layer even though I specified both layers in identifyParams.layerIds = [3,4] and I knew that it should be picking up a feature from the second layer; When I added identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL; the results from both layers came back. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, the sample from the original posting may be correct, and all that might be needed is a clearer explanation of how these two parameters work together.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 19:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-reason-for-using-both-layerids-and/m-p/37019#M3074</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2012-06-08T19:52:17Z</dc:date>
    </item>
  </channel>
</rss>

