<?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: Get DisplayField from Layer loaded via WebMap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-displayfield-from-layer-loaded-via-webmap/m-p/1701536#M88414</link>
    <description>&lt;P&gt;It sounds like all the layer's haven't fully loaded, what happens if you use &lt;A href="https://developers.arcgis.com/javascript/latest/references/core/WebMap/#loadAll" target="_self"&gt;WebMap.loadAll()&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2026 14:34:54 GMT</pubDate>
    <dc:creator>Sage_Wall</dc:creator>
    <dc:date>2026-05-12T14:34:54Z</dc:date>
    <item>
      <title>Get DisplayField from Layer loaded via WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-displayfield-from-layer-loaded-via-webmap/m-p/1701459#M88413</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we are loading our map from a WebMap which also contains all layers defined as part of the webmap via portal.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const webMap = new WebMap({
    portalItem: {
        id: defaultWebMapId
    }
});

await webMap.load();
map = webMap;&lt;/LI-CODE&gt;&lt;P&gt;Unfortunately the field "DisplayField" is undefined for every layer.&lt;BR /&gt;This is how a layer looks on the service:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_0-1778569434962.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/152343i21EEEE8FD7AD1C85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_0-1778569434962.png" alt="SebastianKrings_0-1778569434962.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is it empty in JS after loading the webMap?&lt;/P&gt;&lt;P&gt;How do I get it otherwise?&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 07:04:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-displayfield-from-layer-loaded-via-webmap/m-p/1701459#M88413</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2026-05-12T07:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get DisplayField from Layer loaded via WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-displayfield-from-layer-loaded-via-webmap/m-p/1701536#M88414</link>
      <description>&lt;P&gt;It sounds like all the layer's haven't fully loaded, what happens if you use &lt;A href="https://developers.arcgis.com/javascript/latest/references/core/WebMap/#loadAll" target="_self"&gt;WebMap.loadAll()&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 14:34:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-displayfield-from-layer-loaded-via-webmap/m-p/1701536#M88414</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2026-05-12T14:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get DisplayField from Layer loaded via WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-displayfield-from-layer-loaded-via-webmap/m-p/1701612#M88417</link>
      <description>&lt;P&gt;Works great + Loads Basemap as Layer which wasnt there before using .load() only.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 19:10:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-displayfield-from-layer-loaded-via-webmap/m-p/1701612#M88417</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2026-05-12T19:10:36Z</dc:date>
    </item>
  </channel>
</rss>

