<?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 properly set esriConfig.portalUrl ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-properly-set-esriconfig-portalurl/m-p/147346#M13739</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;started with ArcGIS API for JS only today and am having issues loading scenes from a public portal already. If I use an ID from a public AGOL portal item, my scene shows as intended. If I change to an on-premises portal url with &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl"&gt;esriConfi.portalURL&lt;/A&gt;, nothing appears at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt; &lt;BR /&gt; require([&lt;BR /&gt; "esri/config"&lt;BR /&gt; "esri/WebScene",&lt;BR /&gt; "esri/views/SceneView"&lt;BR /&gt; ], function(esriConfig, WebScene, SceneView) {&lt;/P&gt;&lt;P&gt;// Set the hostname to the on-premises portal&lt;BR /&gt; esriConfig.portalUrl = "https://arcgisportal.mysynergis.com/portal/";&lt;BR /&gt; &lt;BR /&gt; var webscene = new WebScene({&lt;BR /&gt; portalItem: {&lt;BR /&gt; id: "2694728cac174fcb8622f5c472f689fe"&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; var view = new SceneView({&lt;BR /&gt; container: "viewDiv",&lt;BR /&gt; map: webscene&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; });&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what's missing? Also what platform would you suggest for debugging? The&amp;nbsp;ArcGIS API for JavaScript Sandbox doesn't show anything... (also is here on the community forum a proper way to post code like on stackoverflow?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2020 16:28:16 GMT</pubDate>
    <dc:creator>EkremCanli2</dc:creator>
    <dc:date>2020-04-14T16:28:16Z</dc:date>
    <item>
      <title>How to properly set esriConfig.portalUrl ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-properly-set-esriconfig-portalurl/m-p/147346#M13739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;started with ArcGIS API for JS only today and am having issues loading scenes from a public portal already. If I use an ID from a public AGOL portal item, my scene shows as intended. If I change to an on-premises portal url with &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl"&gt;esriConfi.portalURL&lt;/A&gt;, nothing appears at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt; &lt;BR /&gt; require([&lt;BR /&gt; "esri/config"&lt;BR /&gt; "esri/WebScene",&lt;BR /&gt; "esri/views/SceneView"&lt;BR /&gt; ], function(esriConfig, WebScene, SceneView) {&lt;/P&gt;&lt;P&gt;// Set the hostname to the on-premises portal&lt;BR /&gt; esriConfig.portalUrl = "https://arcgisportal.mysynergis.com/portal/";&lt;BR /&gt; &lt;BR /&gt; var webscene = new WebScene({&lt;BR /&gt; portalItem: {&lt;BR /&gt; id: "2694728cac174fcb8622f5c472f689fe"&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; var view = new SceneView({&lt;BR /&gt; container: "viewDiv",&lt;BR /&gt; map: webscene&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; });&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what's missing? Also what platform would you suggest for debugging? The&amp;nbsp;ArcGIS API for JavaScript Sandbox doesn't show anything... (also is here on the community forum a proper way to post code like on stackoverflow?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 16:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-properly-set-esriconfig-portalurl/m-p/147346#M13739</guid>
      <dc:creator>EkremCanli2</dc:creator>
      <dc:date>2020-04-14T16:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly set esriConfig.portalUrl ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-properly-set-esriconfig-portalurl/m-p/1029759#M71844</link>
      <description>&lt;P&gt;Have you checked your browser's developer tools to capture the traffic when you try to load the scene?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 21:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-properly-set-esriconfig-portalurl/m-p/1029759#M71844</guid>
      <dc:creator>RyanDickinson1</dc:creator>
      <dc:date>2021-02-23T21:07:23Z</dc:date>
    </item>
  </channel>
</rss>

