<?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: Map Object Properties: How do I tell if it's a basemap programmatically? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423693#M70549</link>
    <description>&lt;P&gt;No idea how I missed that.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 17:14:01 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2024-05-09T17:14:01Z</dc:date>
    <item>
      <title>Map Object Properties: How do I tell if it's a basemap programmatically?</title>
      <link>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423229#M70545</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1715270153109.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103605i8FC6AFD41BCC50C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1715270153109.png" alt="AlfredBaldenweck_0-1715270153109.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have several map objects in my APRX. One of them is specifically a basemap object, created using "Right-click--&amp;gt;New--&amp;gt; New Basemap"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_1-1715270196779.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103607i5E8F955D1895955C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_1-1715270196779.png" alt="AlfredBaldenweck_1-1715270196779.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I'm running into now is: How do I tell that it's a Basemap using arcpy?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the actual documentation for both the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm#:~:text=the%20ArcGISProject%20class.-,createMap%20(%7Bname%7D%2C%20%7Bmap_type%7D),-Parameter" target="_blank" rel="noopener"&gt;APRX&lt;/A&gt; and the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/map-class.htm" target="_self"&gt;Map&lt;/A&gt; objects, it doesn't seem possible, which is bizarre.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 16:05:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423229#M70545</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-05-09T16:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Map Object Properties: How do I tell if it's a basemap programmatically?</title>
      <link>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423260#M70546</link>
      <description>&lt;P&gt;Apologies if I'm missing something obvious, but would it be the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;isBasemapLayer&lt;/FONT&gt; property on the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/layer-class.htm" target="_self"&gt;layer&lt;/A&gt; object?&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 16:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423260#M70546</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2024-05-09T16:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Map Object Properties: How do I tell if it's a basemap programmatically?</title>
      <link>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423285#M70547</link>
      <description>&lt;P&gt;I think that's referring to like, this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1715271136936.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103612i2EABC8AB7F3FF680/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1715271136936.png" alt="AlfredBaldenweck_0-1715271136936.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want the map object that I created.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 16:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423285#M70547</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-05-09T16:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Map Object Properties: How do I tell if it's a basemap programmatically?</title>
      <link>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423654#M70548</link>
      <description>&lt;P&gt;I did some testing and found the isBasemapLayer of a layer would only tell me if the layer was an ESRI basemap, not my own.&lt;/P&gt;&lt;P&gt;When I created a map, and examined it in the debugger, I found it has a mapType of BASEMAP.&lt;/P&gt;&lt;P&gt;This snippet lists the name and type of each map in my project.&lt;/P&gt;&lt;P&gt;I found this by looking in the map objects in the debugger. (Visual Studio Code in my case)&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
p = "K:/Taxmaps/taxmaps2.aprx"
project = arcpy.mp.ArcGISProject(p)
print()
map = project.listMaps(wildcard="*")
for m in map:
    print("map:", m.name, " type:", m.mapType)
pass&lt;/LI-CODE&gt;&lt;P&gt;Output from code:&lt;/P&gt;&lt;P&gt;map: Clatsop County B&amp;amp;W tiles type: &lt;STRONG&gt;BASEMAP&lt;/STRONG&gt;&lt;BR /&gt;map: County Overview Map type: MAP&lt;BR /&gt;map: Map type: MAP&lt;BR /&gt;map: Main Map type: MAP&lt;BR /&gt;map: Section Overview Map type: MAP&lt;BR /&gt;map: Township Overview Map type: MAP&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 17:07:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423654#M70548</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2024-05-09T17:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Map Object Properties: How do I tell if it's a basemap programmatically?</title>
      <link>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423693#M70549</link>
      <description>&lt;P&gt;No idea how I missed that.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 17:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423693#M70549</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-05-09T17:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Map Object Properties: How do I tell if it's a basemap programmatically?</title>
      <link>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423832#M70550</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/458875"&gt;@AlfredBaldenweck&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;No idea how I missed that.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I looked right at it and moved on. The documentation for mapType says, "&lt;SPAN&gt;Returns a string value that reports the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Map&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;object's type information. If the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Map&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is 2D,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAP&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is returned. If the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Map&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is 3D,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;SCENE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is returned." It implies those are the only two options, which is clearly not the case. I am submitting feedback on that page to be more descriptive of the mapType property.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 17:34:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/map-object-properties-how-do-i-tell-if-it-s-a/m-p/1423832#M70550</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2024-05-09T17:34:07Z</dc:date>
    </item>
  </channel>
</rss>

