<?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>idea Extract basemap/web layer url from ArcGIS pro using ArcPy in Developers Ideas</title>
    <link>https://community.esri.com/t5/developers-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idi-p/928772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Retrieve url of a basemap/web map layer used in Arc GIS pro with arcpy&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;I would like to have the possibility to retrieve&amp;nbsp;&lt;STRONG&gt;automatically&amp;nbsp;(by using python)&lt;/STRONG&gt; the url of a basemap/web layer which is in ArcGIS pro&amp;nbsp;. As you can see in the image below, from the 'source' of the basemap layer I can &lt;STRONG&gt;manually&lt;/STRONG&gt; retrieve the url of the basemap (web map layer).&lt;IMG __jive_id="430173" alt="Url of a basemap/web map layer that can be seen in its properties (ArcGIS Pro)" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/430173_retrieve_basemap_url.png" /&gt;&lt;/P&gt;&lt;P&gt;- I tried to retrieve the properties of the web layer by using arcpy.Describe but there was no method to evoke in order to retrieve the url of the web layer. I could retrieve though the name of the basemap and its dataType (InternetTiledLayer):&lt;BR /&gt;&lt;IMG __jive_id="430190" alt="Web layer properties with arcpy.Describe" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/430190_basemap_properties.PNG" /&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;I looked in the documentation for arcpy.Describe but it seems there are no specific methods that can be applied on web layers (&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/functions/arcinfo-item-properties.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/functions/arcinfo-item-properties.htm"&gt;ArcInfo Workstation Item properties—ArcPy Functions | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;).&lt;BR /&gt;- I also tried to access the&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;CONNECTIONPROPERTIES&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;&lt;SPAN&gt;&amp;nbsp; of the basemap layer but it appers that the connection properties are not applicable for web layers (&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/layer-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/mapping/layer-class.htm"&gt;Layer—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I could automatically &lt;SPAN&gt;(u&lt;/SPAN&gt;&lt;SPAN&gt;sing ArcPy)&amp;nbsp;&lt;/SPAN&gt;extract&amp;nbsp;the url of the basemap from ArcGIS Pro, then I could use the url to specify the basemap I want to have when publishing a web map automatically&amp;nbsp;&lt;SPAN&gt;(&lt;SPAN&gt;by using ArcPy).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2018 14:13:30 GMT</pubDate>
    <dc:creator>AntriaChristodoulou</dc:creator>
    <dc:date>2018-11-23T14:13:30Z</dc:date>
    <item>
      <title>Extract basemap/web layer url from ArcGIS pro using ArcPy</title>
      <link>https://community.esri.com/t5/developers-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idi-p/928772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Retrieve url of a basemap/web map layer used in Arc GIS pro with arcpy&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;I would like to have the possibility to retrieve&amp;nbsp;&lt;STRONG&gt;automatically&amp;nbsp;(by using python)&lt;/STRONG&gt; the url of a basemap/web layer which is in ArcGIS pro&amp;nbsp;. As you can see in the image below, from the 'source' of the basemap layer I can &lt;STRONG&gt;manually&lt;/STRONG&gt; retrieve the url of the basemap (web map layer).&lt;IMG __jive_id="430173" alt="Url of a basemap/web map layer that can be seen in its properties (ArcGIS Pro)" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/430173_retrieve_basemap_url.png" /&gt;&lt;/P&gt;&lt;P&gt;- I tried to retrieve the properties of the web layer by using arcpy.Describe but there was no method to evoke in order to retrieve the url of the web layer. I could retrieve though the name of the basemap and its dataType (InternetTiledLayer):&lt;BR /&gt;&lt;IMG __jive_id="430190" alt="Web layer properties with arcpy.Describe" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/430190_basemap_properties.PNG" /&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;I looked in the documentation for arcpy.Describe but it seems there are no specific methods that can be applied on web layers (&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/functions/arcinfo-item-properties.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/functions/arcinfo-item-properties.htm"&gt;ArcInfo Workstation Item properties—ArcPy Functions | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;).&lt;BR /&gt;- I also tried to access the&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;CONNECTIONPROPERTIES&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;&lt;SPAN&gt;&amp;nbsp; of the basemap layer but it appers that the connection properties are not applicable for web layers (&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/layer-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/mapping/layer-class.htm"&gt;Layer—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I could automatically &lt;SPAN&gt;(u&lt;/SPAN&gt;&lt;SPAN&gt;sing ArcPy)&amp;nbsp;&lt;/SPAN&gt;extract&amp;nbsp;the url of the basemap from ArcGIS Pro, then I could use the url to specify the basemap I want to have when publishing a web map automatically&amp;nbsp;&lt;SPAN&gt;(&lt;SPAN&gt;by using ArcPy).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2018 14:13:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idi-p/928772</guid>
      <dc:creator>AntriaChristodoulou</dc:creator>
      <dc:date>2018-11-23T14:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extract basemap/web layer url from ArcGIS pro using ArcPy</title>
      <link>https://community.esri.com/t5/developers-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idc-p/928773#M230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They used to have the information you are looking for under service properties in ArcMap but removed it in Pro.&amp;nbsp; Given that ArcGIS Pro is supposed to be more web GIS integrated, it is ridiculous getting this kind of information is more difficult or impossible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2018 14:42:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idc-p/928773#M230</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-11-25T14:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extract basemap/web layer url from ArcGIS pro using ArcPy</title>
      <link>https://community.esri.com/t5/developers-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idc-p/928774#M231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have your tried layer.dataSource?&amp;nbsp; We have made improvements to service layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p = arcpy.mp.ArcGISProject('current')&lt;BR /&gt;m = p.listMaps('Map')[0]&lt;BR /&gt;l = m.listLayers('World Topographic Map')[0]&lt;BR /&gt;l.dataSource&lt;BR /&gt;'https:\\\\www.arcgis.com\\sharing\\rest\\content\\items\\7dc6cea0b1764a1f9af2e679f642f0f5\\resources\\styles\\root.json'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idc-p/928774#M231</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2019-06-14T14:01:22Z</dc:date>
    </item>
  </channel>
</rss>

