<?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: ListMapServices and ExportToPDF - how to pull in external layers in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/listmapservices-and-exporttopdf-how-to-pull-in/m-p/645392#M50318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hummm.. Somewhat of a limitation. What if my app allows users to dynamically pull in map services that are hosted by others and then i want to have those in a print product?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like a url should be all that is required to generate a layer whether it is in the browser or server side in python code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As long as my server can resolve the url that the browser resolves then i should be able to expose these layers in print without having to have them in my mxd/msd.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2012 13:55:10 GMT</pubDate>
    <dc:creator>KevinGooss</dc:creator>
    <dc:date>2012-03-05T13:55:10Z</dc:date>
    <item>
      <title>ListMapServices and ExportToPDF - how to pull in external layers</title>
      <link>https://community.esri.com/t5/python-questions/listmapservices-and-exporttopdf-how-to-pull-in/m-p/645390#M50316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to use python and arcpy.mapping to export a map to pdf. I want the map to have some layers from my mxd and i also want to pass in a url to an external layer (like, say, esri streets) from a different server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can turn layers on and off in my own mxd and zoom to an aoi and all that jazz and then export to pdf and it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But how can i integrate a layer from an external source like another arcgis server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see the ListMapService method but i have never been successful in getting it to run. I always get a connection error. Why are there 2 required parameters to this method - url and server? Seems to me that if you have the url to a rest services directory then you have everything you need to list out the services available - that's all my browser needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also see that i can add any .lyr file to my mxd before i export it. But I want to add layers that i don't own and that are not on my server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can this be done at 10.0?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 12:39:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/listmapservices-and-exporttopdf-how-to-pull-in/m-p/645390#M50316</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-03-02T12:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: ListMapServices and ExportToPDF - how to pull in external layers</title>
      <link>https://community.esri.com/t5/python-questions/listmapservices-and-exporttopdf-how-to-pull-in/m-p/645391#M50317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You must author a layer file that points to that other service.&amp;nbsp; You can add that layer file to your MXD using the arcpy.mapping AddLayer function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 13:52:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/listmapservices-and-exporttopdf-how-to-pull-in/m-p/645391#M50317</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-03-05T13:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: ListMapServices and ExportToPDF - how to pull in external layers</title>
      <link>https://community.esri.com/t5/python-questions/listmapservices-and-exporttopdf-how-to-pull-in/m-p/645392#M50318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hummm.. Somewhat of a limitation. What if my app allows users to dynamically pull in map services that are hosted by others and then i want to have those in a print product?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like a url should be all that is required to generate a layer whether it is in the browser or server side in python code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As long as my server can resolve the url that the browser resolves then i should be able to expose these layers in print without having to have them in my mxd/msd.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 13:55:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/listmapservices-and-exporttopdf-how-to-pull-in/m-p/645392#M50318</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-03-05T13:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: ListMapServices and ExportToPDF - how to pull in external layers</title>
      <link>https://community.esri.com/t5/python-questions/listmapservices-and-exporttopdf-how-to-pull-in/m-p/645393#M50319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can leverage the map service's ability to create layer files to view the service in ArcMap.&amp;nbsp; For example: &lt;/SPAN&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/CSP_Imagery_World_2D/MapServer?f=lyr&amp;amp;v=9.3"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/CSP_Imagery_World_2D/MapServer?f=lyr&amp;amp;v=9.3&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;This will allow you to download a layer file (.lyr) to disk.&amp;nbsp; From there, you can then add the map service layer file to your MXD.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 14:31:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/listmapservices-and-exporttopdf-how-to-pull-in/m-p/645393#M50319</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2012-03-06T14:31:15Z</dc:date>
    </item>
  </channel>
</rss>

