<?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: How to use @arcgis/map-components with ArcGIS Enterprise? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-map-components-with-arcgis/m-p/1665852#M87866</link>
    <description>&lt;P&gt;Just wanted to say thank you as this solved my problems for me as well. For those that want a visual fix, this is all that it took in the head of my index.html file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JustinKirtz1_0-1763133688542.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143780i348168EBD964AF89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinKirtz1_0-1763133688542.png" alt="JustinKirtz1_0-1763133688542.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Nov 2025 15:21:53 GMT</pubDate>
    <dc:creator>JustinKirtz1</dc:creator>
    <dc:date>2025-11-14T15:21:53Z</dc:date>
    <item>
      <title>How to use @arcgis/map-components with ArcGIS Enterprise?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-map-components-with-arcgis/m-p/1663763#M87832</link>
      <description>&lt;P&gt;I installed&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/map-components.&lt;/P&gt;&lt;P&gt;I want to view a simple webmap.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import '@arcgis/map-components/components/arcgis-map';

export default function MapView() {
  return (
    &amp;lt;arcgis-map
      // portal-url='https://my-portal-url.com/portal'
      item-id='abc123c5f0314db9a487a9b46cb37eca'
      style={{ height: '400px' }}
    &amp;gt;&amp;lt;/arcgis-map&amp;gt;
  );
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I get something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN class=""&gt;Failed to load web map&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Failed to load portal item&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px" data-unlink="true"&gt;https://www.arcgis.com/sharing/rest/content/items/&lt;SPAN&gt;abc123c5f0314db9a487a9b46cb37eca&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Item does not exist or is inaccessible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Fair enough, because &lt;STRONG&gt;my webmap is not on ArcGIS Online; I'm using ArcGIS Enterprise.&lt;/STRONG&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;How can I indicate that my portal URL is https://my-portal-url.com/portal ?&lt;/P&gt;&lt;P&gt;I tried adding a&amp;nbsp;&lt;SPAN&gt;portal-url property to arcgis-map (commented out above) but it didn't change anything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried loading the portal URL with &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/core&amp;nbsp;esriConfig first and it didn't change anything.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt;import { useEffect } from 'react';
import esriConfig from '@arcgis/core/config';
import '@arcgis/map-components/components/arcgis-map';

export default function MapView() {
  useEffect(() =&amp;gt; {
    esriConfig.portalUrl = 'https://my-portal-url.com/portal';
  });

  return (
    &amp;lt;div style={{ width: '100%', height: '400px' }}&amp;gt;
      &amp;lt;arcgis-map item-id='abc123c5f0314db9a487a9b46cb37eca' style={{ height: '400px' }}&amp;gt;&amp;lt;/arcgis-map&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems very basic, maybe silly... what am I missing?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 22:11:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-map-components-with-arcgis/m-p/1663763#M87832</guid>
      <dc:creator>MapNat</dc:creator>
      <dc:date>2025-11-05T22:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use @arcgis/map-components with ArcGIS Enterprise?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-map-components-with-arcgis/m-p/1663771#M87833</link>
      <description>&lt;P&gt;Set the `esriConfig.portalUrl` outside the useEffect, probably at the top of the page. In apps, I usually set this in the main entry point file or maybe in the `globalThis.esriConfig` before the map components are used.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 22:54:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-map-components-with-arcgis/m-p/1663771#M87833</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-11-05T22:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use @arcgis/map-components with ArcGIS Enterprise?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-map-components-with-arcgis/m-p/1665165#M87847</link>
      <description>&lt;P&gt;Thanks, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 16:41:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-map-components-with-arcgis/m-p/1665165#M87847</guid>
      <dc:creator>MapNat</dc:creator>
      <dc:date>2025-11-12T16:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use @arcgis/map-components with ArcGIS Enterprise?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-map-components-with-arcgis/m-p/1665852#M87866</link>
      <description>&lt;P&gt;Just wanted to say thank you as this solved my problems for me as well. For those that want a visual fix, this is all that it took in the head of my index.html file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JustinKirtz1_0-1763133688542.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143780i348168EBD964AF89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinKirtz1_0-1763133688542.png" alt="JustinKirtz1_0-1763133688542.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 15:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-map-components-with-arcgis/m-p/1665852#M87866</guid>
      <dc:creator>JustinKirtz1</dc:creator>
      <dc:date>2025-11-14T15:21:53Z</dc:date>
    </item>
  </channel>
</rss>

