<?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: Try it live - Basemap garbled (Description and Solution) in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/try-it-live-basemap-garbled-description-and/m-p/803626#M2166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the feedback. &amp;nbsp;This has now been corrected. &amp;nbsp;You should now be able to use &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt; without needing a workaround.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2017 10:14:46 GMT</pubDate>
    <dc:creator>BillMajor</dc:creator>
    <dc:date>2017-04-12T10:14:46Z</dc:date>
    <item>
      <title>Try it live - Basemap garbled (Description and Solution)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/try-it-live-basemap-garbled-description-and/m-p/803625#M2165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just in case, anyone trying the most&amp;nbsp;basic sample and seeing a corrupt basemap, here's an explanation and the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps to reproduce&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use a recent version of Chrome or Firefox (other browsers not tested)&lt;/LI&gt;&lt;LI&gt;Navigate to&amp;nbsp;&lt;A class="link-bare" href="https://notebooks.esri.com" title="https://notebooks.esri.com" rel="nofollow noopener noreferrer" target="_blank"&gt;https://notebooks.esri.com&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Create a new notebook (New -&amp;gt; Python 3)&lt;/LI&gt;&lt;LI&gt;Enter the following script code&lt;/LI&gt;&lt;LI&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;
gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&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;/LI&gt;&lt;LI&gt;Run&amp;nbsp;the cell (&amp;lt;Ctrl-Enter&amp;gt;)&lt;/LI&gt;&lt;LI&gt;The result looks similar to this:&lt;/LI&gt;&lt;LI&gt;&lt;IMG alt="ArcGIS API for Python - Broken Basemap" class="image-1 jive-image j-img-original" src="/legacyfs/online/346109_Python - Bad basemap.PNG" style="width: 620px; height: 375px;" /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Explanation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The notebook is running on an https (secured) connection. However, as we didn't authenticate to ArcGIS Online, we're getting the tiles (and some .js-code) from an http (non-secured) connection. Chrome and Firefox block that unsecured JavaScript code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Workaround 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Instead of using the secured https connection, use&amp;nbsp;&lt;A class="link-bare" href="https://notebooks.esri.com" style="color: #2989c5; text-decoration: underline;" title="https://notebooks.esri.com" rel="nofollow noopener noreferrer" target="_blank"&gt;http://notebooks.esri.com&lt;/A&gt;&amp;nbsp;instead. As everything will be loaded without encryption, Chrome / Firefox are happy with that.&lt;/P&gt;&lt;P&gt;However: If you change your script to an authenticated AGOL-Session, you will send your username / password in plain-text through the net!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Workaround 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Both Chrome and Firefox have the option to explicitly allow loading unsecure content. In Chrome, there's a small icon on the right, in Firefox, it's right beside the https-indicator.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:20:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/try-it-live-basemap-garbled-description-and/m-p/803625#M2165</guid>
      <dc:creator>JensBuchta</dc:creator>
      <dc:date>2021-12-12T09:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Try it live - Basemap garbled (Description and Solution)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/try-it-live-basemap-garbled-description-and/m-p/803626#M2166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the feedback. &amp;nbsp;This has now been corrected. &amp;nbsp;You should now be able to use &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt; without needing a workaround.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 10:14:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/try-it-live-basemap-garbled-description-and/m-p/803626#M2166</guid>
      <dc:creator>BillMajor</dc:creator>
      <dc:date>2017-04-12T10:14:46Z</dc:date>
    </item>
  </channel>
</rss>

