<?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 Map Viewer is unavailable in ArcGIS Pro Notebooks. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/map-viewer-is-unavailable-in-arcgis-pro-notebooks/m-p/1398651#M70098</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having a problem displaying a Map View inside of an ArcPro Notebook.&lt;/P&gt;&lt;P&gt;I'm using ArcPro 3.1 in a disconnected Enterprise Environment running 11.1.0&lt;/P&gt;&lt;P&gt;The map sort of loads with the navigation controls, but is white, with no basemap.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveF_0-1710958968300.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98577i1E6CAFF7A82FE517/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SteveF_0-1710958968300.png" alt="SteveF_0-1710958968300.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I create a WebMap in Portal I can load that using it's id&lt;/P&gt;&lt;P&gt;data_item_id = 'xxxxxxxx'map.basemap = gis.content.get(data_item_id)&lt;/P&gt;&lt;P&gt;Its a work around, but will only work on Webmaps that I set the basemap to something with Satellite Imagery.&lt;BR /&gt;&lt;BR /&gt;I was looking around and found a reference to setting the CDN using the following command.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from arcgis.widgets import &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MapView MapView.set_js_cdn("https://&amp;lt;PortalURL&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;/arcgis/jsapi/jsapi4")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I ran that, the map is now completely white, without any navigation and I can no longer use gis.content.get()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found a bug referenced here (last modified October 24, 2023) that seems to be the same thing that I'm experiencing:&lt;BR /&gt;&lt;A href="https://support.esri.com/en-us/bug/map-viewer-is-unavailable-in-arcgis-pro-notebooks-bug-000136038" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/bug/map-viewer-is-unavailable-in-arcgis-pro-notebooks-bug-000136038&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But they suggest to not use the set_js_cdn anymore, and instead use:&lt;BR /&gt;&lt;STRONG&gt;To upgrade the arcgis package using Python Package Manager&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;Which does not appear in my version of ArcPro (3.1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There are many pages in the&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/" target="_blank" rel="noopener"&gt;ArcGIS API for Python&lt;/A&gt;&amp;nbsp;documention that talk about setting the CDN.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/python/guide/part6-utility-functions-for-the-map-widget/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/part6-utility-functions-for-the-map-widget/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.widgets.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.widgets.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So which is the right approach?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 18:45:47 GMT</pubDate>
    <dc:creator>SteveF</dc:creator>
    <dc:date>2024-03-20T18:45:47Z</dc:date>
    <item>
      <title>Map Viewer is unavailable in ArcGIS Pro Notebooks.</title>
      <link>https://community.esri.com/t5/python-questions/map-viewer-is-unavailable-in-arcgis-pro-notebooks/m-p/1398651#M70098</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having a problem displaying a Map View inside of an ArcPro Notebook.&lt;/P&gt;&lt;P&gt;I'm using ArcPro 3.1 in a disconnected Enterprise Environment running 11.1.0&lt;/P&gt;&lt;P&gt;The map sort of loads with the navigation controls, but is white, with no basemap.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveF_0-1710958968300.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98577i1E6CAFF7A82FE517/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SteveF_0-1710958968300.png" alt="SteveF_0-1710958968300.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I create a WebMap in Portal I can load that using it's id&lt;/P&gt;&lt;P&gt;data_item_id = 'xxxxxxxx'map.basemap = gis.content.get(data_item_id)&lt;/P&gt;&lt;P&gt;Its a work around, but will only work on Webmaps that I set the basemap to something with Satellite Imagery.&lt;BR /&gt;&lt;BR /&gt;I was looking around and found a reference to setting the CDN using the following command.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from arcgis.widgets import &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MapView MapView.set_js_cdn("https://&amp;lt;PortalURL&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;/arcgis/jsapi/jsapi4")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I ran that, the map is now completely white, without any navigation and I can no longer use gis.content.get()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found a bug referenced here (last modified October 24, 2023) that seems to be the same thing that I'm experiencing:&lt;BR /&gt;&lt;A href="https://support.esri.com/en-us/bug/map-viewer-is-unavailable-in-arcgis-pro-notebooks-bug-000136038" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/bug/map-viewer-is-unavailable-in-arcgis-pro-notebooks-bug-000136038&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But they suggest to not use the set_js_cdn anymore, and instead use:&lt;BR /&gt;&lt;STRONG&gt;To upgrade the arcgis package using Python Package Manager&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;Which does not appear in my version of ArcPro (3.1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There are many pages in the&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/" target="_blank" rel="noopener"&gt;ArcGIS API for Python&lt;/A&gt;&amp;nbsp;documention that talk about setting the CDN.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/python/guide/part6-utility-functions-for-the-map-widget/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/part6-utility-functions-for-the-map-widget/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.widgets.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.widgets.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So which is the right approach?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 18:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/map-viewer-is-unavailable-in-arcgis-pro-notebooks/m-p/1398651#M70098</guid>
      <dc:creator>SteveF</dc:creator>
      <dc:date>2024-03-20T18:45:47Z</dc:date>
    </item>
  </channel>
</rss>

