<?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 Issue Loading Web Map from Portal using Web Components in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-loading-web-map-from-portal-using-web/m-p/1538961#M85685</link>
    <description>&lt;P&gt;I am currently encountering an issue loading a web map from an ArcGIS Enterprise Portal using ArcGIS JavaScript web components.&lt;/P&gt;&lt;P&gt;Are there examples available for succesfully loading a web map from an Enterprise Portal?&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 15:28:40 GMT</pubDate>
    <dc:creator>dgreenin</dc:creator>
    <dc:date>2024-09-16T15:28:40Z</dc:date>
    <item>
      <title>Issue Loading Web Map from Portal using Web Components</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-loading-web-map-from-portal-using-web/m-p/1538961#M85685</link>
      <description>&lt;P&gt;I am currently encountering an issue loading a web map from an ArcGIS Enterprise Portal using ArcGIS JavaScript web components.&lt;/P&gt;&lt;P&gt;Are there examples available for succesfully loading a web map from an Enterprise Portal?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 15:28:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-loading-web-map-from-portal-using-web/m-p/1538961#M85685</guid>
      <dc:creator>dgreenin</dc:creator>
      <dc:date>2024-09-16T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Loading Web Map from Portal using Web Components</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-loading-web-map-from-portal-using-web/m-p/1538967#M85686</link>
      <description>&lt;P&gt;This is going to depend on how you are building your app. Here is some documentation showing the steps to set up the esriConfig portal url.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/programming-patterns/#set-the-portalurl-in-an-amd-application" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/programming-patterns/#set-the-portalurl-in-an-amd-application&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/programming-patterns/#set-the-portalurl-in-an-esm-application" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/programming-patterns/#set-the-portalurl-in-an-esm-application&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are building your app from scratch with npm, I would recommend you set up the esriConfig portal url, and any auth needed before loading your components, so something like this.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;esriConfig.portalUrl = something;
esriId.registerOAuthInfos([info]);
import("@arcgis/map-components/dist/loader").then(
    ({ defineCustomElements }) =&amp;gt; {
      defineCustomElements();
    },
);&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 Sep 2024 15:35:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-loading-web-map-from-portal-using-web/m-p/1538967#M85686</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2024-09-16T15:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Loading Web Map from Portal using Web Components</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-loading-web-map-from-portal-using-web/m-p/1539052#M85692</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your quick response!&lt;/P&gt;&lt;P&gt;After taking a second look at the links you provided, I was able to adjust the script and successfully load the web map of interest.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 18:02:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-loading-web-map-from-portal-using-web/m-p/1539052#M85692</guid>
      <dc:creator>dgreenin</dc:creator>
      <dc:date>2024-09-16T18:02:43Z</dc:date>
    </item>
  </channel>
</rss>

