<?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 Task on Dynamic Map Service Layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-dynamic-map-service-layer/m-p/546687#M50941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Identify_Map_Service/02r300000113000000/"&gt;REST API documentation&lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Note: In the case of dynamic layers the layer list is ignored, it instead uses top or all (default) to identify the layers defined in dynamicLayers parameter.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 07:36:27 GMT</pubDate>
    <dc:creator>OttarViken_Valvåg</dc:creator>
    <dc:date>2014-02-24T07:36:27Z</dc:date>
    <item>
      <title>Identify Task on Dynamic Map Service Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-dynamic-map-service-layer/m-p/546683#M50937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using an identify task to display attributes for multiple layers within the same ArcGIS dynamic map service.&amp;nbsp; I am wondering what would be the best way of going about showing only an info window for the &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;visible &lt;/SPAN&gt;&lt;SPAN&gt;layers when clicked.&amp;nbsp; Right now, all layers appear in the info window, with an arrow which allows the user to scroll through.&amp;nbsp; This would be fine, however, the initial info window shows attributes for the top most layer whether it is visible or not.&amp;nbsp; I only want the visible layers to appear here.&amp;nbsp; I can do this with if statements, however, I would have to modify the code each time a layer is added to the map service, which I am trying to avoid.&amp;nbsp; Would I need to loop through each layer to determine the visibility, and only return results for those layers that are visible?&amp;nbsp; If so, could someone provide me with an example for a way to accomplish this without a bunch of if statements?&amp;nbsp; I have tried using the LAYER_OPTION_VISIBLE parameter, however, it does not return find any layers.&amp;nbsp; Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 14:53:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-dynamic-map-service-layer/m-p/546683#M50937</guid>
      <dc:creator>WesAskew</dc:creator>
      <dc:date>2014-02-05T14:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Task on Dynamic Map Service Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-dynamic-map-service-layer/m-p/546684#M50938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried setting the layerIds property of the IdentifyParameters?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var idParams = new IdentifyParameters(); idParams.width = map.width; idParams.height = map.height; idParams.geometry = evt.mapPoint; idParams.mapExtent = map.extent; idParams.layerOption = IdentifyParameters.LAYER_OPTION_VISIBLE; idParams.layerIds = layer.visibleLayers; idParams.tolerance = 3; idParams.returnGeometry = true; idParams.spatialReference = map.spatialReference;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 16:02:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-dynamic-map-service-layer/m-p/546684#M50938</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-02-05T16:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Task on Dynamic Map Service Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-dynamic-map-service-layer/m-p/546685#M50939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you tried setting the layerIds property of the IdentifyParameters?&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var idParams = new IdentifyParameters();
idParams.width = map.width;
idParams.height = map.height;
idParams.geometry = evt.mapPoint;
idParams.mapExtent = map.extent;
idParams.layerOption = IdentifyParameters.LAYER_OPTION_VISIBLE;
idParams.layerIds = layer.visibleLayers;
idParams.tolerance = 3;
idParams.returnGeometry = true;
idParams.spatialReference = map.spatialReference;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response.&amp;nbsp; Yes, i have set the layerIds property to the visible layers.&amp;nbsp; For some reason when I when change the layerOption to LAYER_OPTION_VISIBLE, I get "No Information Available" in the info window.&amp;nbsp; Do you know what could be causing this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:39:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-dynamic-map-service-layer/m-p/546685#M50939</guid>
      <dc:creator>WesAskew</dc:creator>
      <dc:date>2021-12-11T23:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Task on Dynamic Map Service Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-dynamic-map-service-layer/m-p/546686#M50940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you put this in &lt;/SPAN&gt;&lt;A href="http://jsbin.com/"&gt;JSBin&lt;/A&gt;&lt;SPAN&gt; to show the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 16:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-dynamic-map-service-layer/m-p/546686#M50940</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-02-05T16:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Task on Dynamic Map Service Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-dynamic-map-service-layer/m-p/546687#M50941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Identify_Map_Service/02r300000113000000/"&gt;REST API documentation&lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Note: In the case of dynamic layers the layer list is ignored, it instead uses top or all (default) to identify the layers defined in dynamicLayers parameter.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 07:36:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-task-on-dynamic-map-service-layer/m-p/546687#M50941</guid>
      <dc:creator>OttarViken_Valvåg</dc:creator>
      <dc:date>2014-02-24T07:36:27Z</dc:date>
    </item>
  </channel>
</rss>

