<?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 How to set the basemap layers of a WebMap using the ArcGIS Python API? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-set-the-basemap-layers-of-a-webmap-using/m-p/683310#M52918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the ArcGIS Python API, I've create a WebMap and two Layers (one containing features, the other containing labels):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;cbmt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; WebMap&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
cbmt_geometry_layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Layer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;url of geometry layer&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
cbmt_text_layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Layer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;url of text layer&lt;SPAN class="operator token"&gt;&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'd like to add both of these layers to the map as basemap layers, like you can in ArcGIS Online or Portal when adding layers to a web map. The &lt;EM&gt;WebMap.basemap&lt;/EM&gt; property is read-only. Is there a property on the&lt;EM&gt; WebMap.add_layer()&lt;/EM&gt; method that specifies to add layers as basemap layers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xref: &lt;A class="link-titled" href="https://gis.stackexchange.com/questions/301193/how-to-set-the-basemap-layers-of-a-webmap-using-the-arcgis-python-api" title="https://gis.stackexchange.com/questions/301193/how-to-set-the-basemap-layers-of-a-webmap-using-the-arcgis-python-api" rel="nofollow noopener noreferrer" target="_blank"&gt;How to set the basemap layers of a WebMap using the ArcGIS Python API? - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:44:46 GMT</pubDate>
    <dc:creator>JonathanBailey</dc:creator>
    <dc:date>2021-12-12T04:44:46Z</dc:date>
    <item>
      <title>How to set the basemap layers of a WebMap using the ArcGIS Python API?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-set-the-basemap-layers-of-a-webmap-using/m-p/683310#M52918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the ArcGIS Python API, I've create a WebMap and two Layers (one containing features, the other containing labels):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;cbmt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; WebMap&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
cbmt_geometry_layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Layer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;url of geometry layer&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
cbmt_text_layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Layer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;url of text layer&lt;SPAN class="operator token"&gt;&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'd like to add both of these layers to the map as basemap layers, like you can in ArcGIS Online or Portal when adding layers to a web map. The &lt;EM&gt;WebMap.basemap&lt;/EM&gt; property is read-only. Is there a property on the&lt;EM&gt; WebMap.add_layer()&lt;/EM&gt; method that specifies to add layers as basemap layers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xref: &lt;A class="link-titled" href="https://gis.stackexchange.com/questions/301193/how-to-set-the-basemap-layers-of-a-webmap-using-the-arcgis-python-api" title="https://gis.stackexchange.com/questions/301193/how-to-set-the-basemap-layers-of-a-webmap-using-the-arcgis-python-api" rel="nofollow noopener noreferrer" target="_blank"&gt;How to set the basemap layers of a WebMap using the ArcGIS Python API? - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-set-the-basemap-layers-of-a-webmap-using/m-p/683310#M52918</guid>
      <dc:creator>JonathanBailey</dc:creator>
      <dc:date>2021-12-12T04:44:46Z</dc:date>
    </item>
  </channel>
</rss>

