<?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 Runtime Feature Layers Not Detected by fetchPopupFeatures() in 5.1 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/runtime-feature-layers-not-detected-by/m-p/1718705#M88571</link>
    <description>&lt;P&gt;I have been trying to build an application that can work even if the Enterprise Portal goes down. Because of this limitation, layers must be added at runtime. I cannot depend on a Webmap.&lt;/P&gt;&lt;P&gt;I have not been able to find a non-deprecated way to get a Popup, Feature, or Features Component to detect a Feature or Map Image Layer that has been loaded at runtime. I've tried the new fetchPopupFeatures() function, the standard Popup and even directly calling hitTest().&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a sample in CodePen. The sample has both a standard Popup enabled and a Features Component. The data that is pre-loaded in the Webmap is detected by both. I has added a layer of bigfoot sighting, symbolized by orange balls. This layer is not being found by either.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/editor/jeffrey-thompson/pen/019fd25d-36cf-71a1-95fa-388574bc8f31" target="_blank"&gt;https://codepen.io/editor/jeffrey-thompson/pen/019fd25d-36cf-71a1-95fa-388574bc8f31&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was able get my application working by using the deprecated fetchFeatures() function. These lines are commented out in my CodePen, but do not appear to work in the sample either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2026 15:42:53 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2026-08-05T15:42:53Z</dc:date>
    <item>
      <title>Runtime Feature Layers Not Detected by fetchPopupFeatures() in 5.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/runtime-feature-layers-not-detected-by/m-p/1718705#M88571</link>
      <description>&lt;P&gt;I have been trying to build an application that can work even if the Enterprise Portal goes down. Because of this limitation, layers must be added at runtime. I cannot depend on a Webmap.&lt;/P&gt;&lt;P&gt;I have not been able to find a non-deprecated way to get a Popup, Feature, or Features Component to detect a Feature or Map Image Layer that has been loaded at runtime. I've tried the new fetchPopupFeatures() function, the standard Popup and even directly calling hitTest().&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a sample in CodePen. The sample has both a standard Popup enabled and a Features Component. The data that is pre-loaded in the Webmap is detected by both. I has added a layer of bigfoot sighting, symbolized by orange balls. This layer is not being found by either.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/editor/jeffrey-thompson/pen/019fd25d-36cf-71a1-95fa-388574bc8f31" target="_blank"&gt;https://codepen.io/editor/jeffrey-thompson/pen/019fd25d-36cf-71a1-95fa-388574bc8f31&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was able get my application working by using the deprecated fetchFeatures() function. These lines are commented out in my CodePen, but do not appear to work in the sample either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2026 15:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/runtime-feature-layers-not-detected-by/m-p/1718705#M88571</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2026-08-05T15:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Feature Layers Not Detected by fetchPopupFeatures() in 5.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/runtime-feature-layers-not-detected-by/m-p/1719024#M88578</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677423"&gt;@JeffreyThompson2&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;The `fetchFeatures()` method belongs to the Popup/Features component and utilizes the `defaultPopupTemplate` property to generate a popup for features that do not already have a popup template defined. In contrast, the `fetchPopupFeatures()` method is managed by the arcgis-map component/view and operates independently of the Popup/Features component. To retrieve popup feature information using this method, the layer must have a popup template set beforehand.&lt;/P&gt;&lt;P&gt;I updated your codePen sample to show how to get this to work:&amp;nbsp;&lt;A href="https://codepen.io/editor/laurenb14/pen/019fd7d2-3bf8-73e3-942e-7550deb9d794" target="_blank"&gt;https://codepen.io/editor/laurenb14/pen/019fd7d2-3bf8-73e3-942e-7550deb9d794&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps! Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2026 17:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/runtime-feature-layers-not-detected-by/m-p/1719024#M88578</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2026-08-06T17:30:12Z</dc:date>
    </item>
  </channel>
</rss>

