<?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 pass layers id's  Dynamically to Print Service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-pass-layers-id-s-dynamically-to-print/m-p/1161962#M76943</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;On my map i have One Map service which has 7 layers. While&amp;nbsp; printing the map along with legend&amp;nbsp; using custom print service , i need to show only the layers visible in that current map extent.&lt;/P&gt;&lt;P&gt;currently im passing my all layer id to&lt;STRONG&gt; LegendeLayer array in template.Layoutoptions.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is it possible to get layers only visible in that map extent ? so that legend symbology can change dynamically on map extent in print output.&lt;/P&gt;&lt;P&gt;In my print mxd when i add Map service to it below option is disabled:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tarunvisvanadula1994_0-1649315605669.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38314i303A5D6095292C90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tarunvisvanadula1994_0-1649315605669.png" alt="Tarunvisvanadula1994_0-1649315605669.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you help me for getting layer id's available in map extent using JavaScript API ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tarun V&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 07:16:06 GMT</pubDate>
    <dc:creator>Tarunvisvanadula1994</dc:creator>
    <dc:date>2022-04-07T07:16:06Z</dc:date>
    <item>
      <title>How to pass layers id's  Dynamically to Print Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-pass-layers-id-s-dynamically-to-print/m-p/1161962#M76943</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;On my map i have One Map service which has 7 layers. While&amp;nbsp; printing the map along with legend&amp;nbsp; using custom print service , i need to show only the layers visible in that current map extent.&lt;/P&gt;&lt;P&gt;currently im passing my all layer id to&lt;STRONG&gt; LegendeLayer array in template.Layoutoptions.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is it possible to get layers only visible in that map extent ? so that legend symbology can change dynamically on map extent in print output.&lt;/P&gt;&lt;P&gt;In my print mxd when i add Map service to it below option is disabled:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tarunvisvanadula1994_0-1649315605669.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38314i303A5D6095292C90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tarunvisvanadula1994_0-1649315605669.png" alt="Tarunvisvanadula1994_0-1649315605669.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you help me for getting layer id's available in map extent using JavaScript API ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tarun V&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 07:16:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-pass-layers-id-s-dynamically-to-print/m-p/1161962#M76943</guid>
      <dc:creator>Tarunvisvanadula1994</dc:creator>
      <dc:date>2022-04-07T07:16:06Z</dc:date>
    </item>
  </channel>
</rss>

