<?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: Print map using layers from multiple map services in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306117#M28083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Maybe I am missing something, but yes the printtask supports printing multiple map services in the map. When you use the print task you specify the url to the print service not the url to a particular webmap or map service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2016 13:34:25 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-10-19T13:34:25Z</dc:date>
    <item>
      <title>Print map using layers from multiple map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306116#M28082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to print map layers from multiple map services using ArcGIS Java Script API? I have situation where more than 2 map services needs to be included in a single JavaScript application and layers from any of these services (as selected by the user) needs to be exported as a map using the Export Webmap service (using a defined map template published from my server). However, when using the Export WebMap print service, there is only option to pass one map service as a parameter. Is there any way around?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 16:38:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306116#M28082</guid>
      <dc:creator>ThomasPuthusserry</dc:creator>
      <dc:date>2016-10-14T16:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Print map using layers from multiple map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306117#M28083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Maybe I am missing something, but yes the printtask supports printing multiple map services in the map. When you use the print task you specify the url to the print service not the url to a particular webmap or map service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 13:34:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306117#M28083</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-19T13:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Print map using layers from multiple map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306118#M28084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found that if the 'Export Map' operation is not enabled on remote services that I can not print that service's data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306118#M28084</guid>
      <dc:creator>BrettCummings</dc:creator>
      <dc:date>2016-10-19T15:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Print map using layers from multiple map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306119#M28085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Makes sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:11:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306119#M28085</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-19T15:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Print map using layers from multiple map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306120#M28086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can frame the situation a bit more clearly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can print layers from a SINGLE map service by passing that as a parameter to the ExportWebmap task. If I want to print layers from TWO or MORE map services, is it possible to pass these as parameters under url option below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"operationalLayers" : [&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;  "id" : "&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:47:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306120#M28086</guid>
      <dc:creator>ThomasPuthusserry</dc:creator>
      <dc:date>2016-10-19T15:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Print map using layers from multiple map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306121#M28087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you adding the secondary services dynamically or do they already exist in the same map application?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306121#M28087</guid>
      <dc:creator>BrettCummings</dc:creator>
      <dc:date>2016-10-19T15:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Print map using layers from multiple map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306122#M28088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Three services from same ArcGIS server are being used in the map application. The user might turn on any layer(s) from any of the three map services. Nothing is added dynamically&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:58:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306122#M28088</guid>
      <dc:creator>ThomasPuthusserry</dc:creator>
      <dc:date>2016-10-19T15:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Print map using layers from multiple map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306123#M28089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; What really has me confused is why you are asking about such low level things like&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;ExportWebmap task and the actual json provided to it. If you use PrintTask and provide the printtask the url to your print service (which is the consumer of the&amp;nbsp;&lt;SPAN&gt;ExportWebmap GP) then you just provide the map object and it does all the work for you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 16:03:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306123#M28089</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-19T16:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Print map using layers from multiple map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306124#M28090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this. The reason is, the developer I am working with says there is no option to pass more than one URL (of the map service), and hence my question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 16:14:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306124#M28090</guid>
      <dc:creator>ThomasPuthusserry</dc:creator>
      <dc:date>2016-10-19T16:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Print map using layers from multiple map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306125#M28091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You need to ask the developer if they are using the PrintTask then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 16:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306125#M28091</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-19T16:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Print map using layers from multiple map services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306126#M28092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed, it is rather strange to see someone generating print output the hard way, and I too would recommend the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/printtask-amd.html" rel="nofollow noopener noreferrer" target="_blank"&gt;PrintTask&lt;/A&gt; as well, since it will greatly simplify things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, to just answer the&amp;nbsp;question as it was presented, yes, you can pass multiple map service definitions to the ExportWebMap service.&amp;nbsp; The operationalLayers parameter is an array, so by definition accepts any number of values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"mapOptions"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;/* etc, etc */&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"operationalLayers"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"id"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"layer1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"url"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwhatever.com%2Farcigs%2Frest%2Fservices%2Fservice1%2FMapServer" target="_blank"&gt;http://whatever.com/arcigs/rest/services/service1/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"id"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"layer2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"url"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwhatever.com%2Farcigs%2Frest%2Fservices%2Fservice2%2FMapServer" target="_blank"&gt;http://whatever.com/arcigs/rest/services/service2/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"id"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"layer3"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"url"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2FsomeOtherSite.com%2Farcigs%2Frest%2Fservices%2Fservice74%2FMapServer" target="_blank"&gt;http://someOtherSite.com/arcigs/rest/services/service74/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"exportOptions"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;/* etc, etc */&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"layoutOptions"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;/* etc, etc */&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code just shows the structure...there are many parameters I have not displayed just for simplicity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:38:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-using-layers-from-multiple-map-services/m-p/306126#M28092</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2021-12-11T14:38:55Z</dc:date>
    </item>
  </channel>
</rss>

