<?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 how to identify a dynamiclayer added on the fly in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-identify-a-dynamiclayer-added-on-the-fly/m-p/357583#M33082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wondering if anyone knows how to identify a dynamiclayer as in a joindatasource layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The REST API has a DynamicLayers text box in the identify request where I can successfully get results from a layer that does not exist on the mapservice. You can see it here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/identify" title="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/identify"&gt;Identify (Census)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just can't find a way to do this in Javascript. Do I really need to build the request manually? It seems weird... dynamiclayers exist since 10.1, I suppose there is a way in the JS API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2015 20:45:04 GMT</pubDate>
    <dc:creator>DuarteCarreira</dc:creator>
    <dc:date>2015-08-31T20:45:04Z</dc:date>
    <item>
      <title>how to identify a dynamiclayer added on the fly</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-identify-a-dynamiclayer-added-on-the-fly/m-p/357583#M33082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wondering if anyone knows how to identify a dynamiclayer as in a joindatasource layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The REST API has a DynamicLayers text box in the identify request where I can successfully get results from a layer that does not exist on the mapservice. You can see it here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/identify" title="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/identify"&gt;Identify (Census)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just can't find a way to do this in Javascript. Do I really need to build the request manually? It seems weird... dynamiclayers exist since 10.1, I suppose there is a way in the JS API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 20:45:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-identify-a-dynamiclayer-added-on-the-fly/m-p/357583#M33082</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2015-08-31T20:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to identify a dynamiclayer added on the fly</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-identify-a-dynamiclayer-added-on-the-fly/m-p/357584#M33083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well this turned out to be very easy... but has some loopholes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you have already added your dynamiclayer to your map, this will be defined:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dynamicMapServiceLayer.dynamicLayerInfos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the identify task to target your dynamiclayer, you have to put the above into the IdentifyParams:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;identifyParams.dynamicLayerInfos = dynamicMapServiceLayer.dynamicLayerInfos;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The caveat: you cannot put anything in identifyParams.layerIds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My understanding (for now) is that layerIds are for the original mapservice layers. If you need to identify&amp;nbsp; dynamiclayers you added on the fly *and* layers that were already in the mapservice, you should create 2 separate identifyTask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I hope this helps someone else... sorry I don't have a complete sample... theoretically a sample can be made using a dynamicMapService from esri that supports dynamic symbology.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 17:00:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-identify-a-dynamiclayer-added-on-the-fly/m-p/357584#M33083</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2015-09-04T17:00:12Z</dc:date>
    </item>
  </channel>
</rss>

