<?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 ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idi-p/933262</link>
    <description>&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 src="https://community.esri.com/legacyfs/online/430173_retrieve_basemap_url.png" border="0" alt="Url of a basemap/web map layer that can be seen in its properties (ArcGIS Pro)" /&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 src="https://community.esri.com/legacyfs/online/430190_basemap_properties.PNG" border="0" alt="Web layer properties with arcpy.Describe" /&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 title="http://pro.arcgis.com/en/pro-app/arcpy/functions/arcinfo-item-properties.htm" href="http://pro.arcgis.com/en/pro-app/arcpy/functions/arcinfo-item-properties.htm" target="_blank" rel="noopener"&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&gt;CONNECTIONPROPERTIES&lt;/SPAN&gt;&lt;SPAN&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 title="http://pro.arcgis.com/en/pro-app/arcpy/mapping/layer-class.htm" href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/layer-class.htm" target="_blank" rel="noopener"&gt;Layer—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
    <pubDate>Tue, 17 Oct 2023 17:57:17 GMT</pubDate>
    <dc:creator>AntriaChristodoulou</dc:creator>
    <dc:date>2023-10-17T17:57:17Z</dc:date>
    <item>
      <title>Extract basemap/web layer url from ArcGIS pro using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idi-p/933262</link>
      <description>&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 src="https://community.esri.com/legacyfs/online/430173_retrieve_basemap_url.png" border="0" alt="Url of a basemap/web map layer that can be seen in its properties (ArcGIS Pro)" /&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 src="https://community.esri.com/legacyfs/online/430190_basemap_properties.PNG" border="0" alt="Web layer properties with arcpy.Describe" /&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 title="http://pro.arcgis.com/en/pro-app/arcpy/functions/arcinfo-item-properties.htm" href="http://pro.arcgis.com/en/pro-app/arcpy/functions/arcinfo-item-properties.htm" target="_blank" rel="noopener"&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&gt;CONNECTIONPROPERTIES&lt;/SPAN&gt;&lt;SPAN&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 title="http://pro.arcgis.com/en/pro-app/arcpy/mapping/layer-class.htm" href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/layer-class.htm" target="_blank" rel="noopener"&gt;Layer—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Tue, 17 Oct 2023 17:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idi-p/933262</guid>
      <dc:creator>AntriaChristodoulou</dc:creator>
      <dc:date>2023-10-17T17:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extract basemap/web layer url from ArcGIS pro using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idc-p/933263#M3481</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/arcgis-pro-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idc-p/933263#M3481</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/arcgis-pro-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idc-p/933264#M3482</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/arcgis-pro-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idc-p/933264#M3482</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2019-06-14T14:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extract basemap/web layer url from ArcGIS pro using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idc-p/1338921#M26572</link>
      <description>&lt;P&gt;Layer.dataSource will give you the URL of basemaps, or any service layer. There is also a new feature available with ArcGIS Pro version 3.2 that will help with your workflow - the ArcGISProject class now has a listBasemaps function that will return all the basemaps that are available in a project. You can then use the return object from listBasemaps in Map.addBasemap(). Note that addBasemap is available in version 3.1 and earlier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In regards to Layer.serviceProperties available in ArcMap 10x, all the service properties for any service layer are available by reading the the layer's CIM using ArcGIS Pro. There will be new code samples added to the help soon for this workflow. For more information, see these topics:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/updatingandfixingdatasources.htm" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/updatingandfixingdatasources.htm&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 21:43:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idc-p/1338921#M26572</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2023-10-17T21:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extract basemap/web layer url from ArcGIS pro using ArcPy - Status changed to: Already Offered</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idc-p/1341657#M26698</link>
      <description />
      <pubDate>Wed, 25 Oct 2023 20:18:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/extract-basemap-web-layer-url-from-arcgis-pro/idc-p/1341657#M26698</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2023-10-25T20:18:04Z</dc:date>
    </item>
  </channel>
</rss>

