<?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: Features widget using FeatureLayer added to map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/features-widget-using-featurelayer-added-to-map/m-p/1306602#M81638</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/14521"&gt;@LefterisKoumis&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;When you want to use the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Features.html#fetchFeatures" target="_self"&gt;fetchFeatures&lt;/A&gt; method, the layers need to have an associated popupTemplate set. This is noted in the description of the method.&lt;/P&gt;&lt;P&gt;If you add a popup template to your feature layer, the features are fetched successfully:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const featureLayer = new FeatureLayer({
    url:
   "https://gis.cnra.ca.gov/arcgis/rest/services/Boundaries/CCED_AccessType/MapServer/0",
    popupTemplate: {
        title: "Title",
        content: "This is the content."
    }
});&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2023 17:23:56 GMT</pubDate>
    <dc:creator>LaurenBoyd</dc:creator>
    <dc:date>2023-07-07T17:23:56Z</dc:date>
    <item>
      <title>Features widget using FeatureLayer added to map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/features-widget-using-featurelayer-added-to-map/m-p/1306408#M81630</link>
      <description>&lt;P&gt;I am trying to use the new Features widget to have the popup info posted on the side panel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is an example at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-features" target="_self"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-features&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that it uses a featurelayer from the portal.&lt;/P&gt;&lt;P&gt;Below, I modified the above example by removing the webmap and added a feature layer. But I can't see the popup info if you click on a feature. What am I missing? Thank you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/lkoumis1/pen/BaGwrde?editors=1000" target="_self"&gt;https://codepen.io/lkoumis1/pen/BaGwrde?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 19:16:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/features-widget-using-featurelayer-added-to-map/m-p/1306408#M81630</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2023-07-07T19:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Features widget using FeatureLayer added to map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/features-widget-using-featurelayer-added-to-map/m-p/1306602#M81638</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/14521"&gt;@LefterisKoumis&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;When you want to use the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Features.html#fetchFeatures" target="_self"&gt;fetchFeatures&lt;/A&gt; method, the layers need to have an associated popupTemplate set. This is noted in the description of the method.&lt;/P&gt;&lt;P&gt;If you add a popup template to your feature layer, the features are fetched successfully:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const featureLayer = new FeatureLayer({
    url:
   "https://gis.cnra.ca.gov/arcgis/rest/services/Boundaries/CCED_AccessType/MapServer/0",
    popupTemplate: {
        title: "Title",
        content: "This is the content."
    }
});&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 17:23:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/features-widget-using-featurelayer-added-to-map/m-p/1306602#M81638</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2023-07-07T17:23:56Z</dc:date>
    </item>
  </channel>
</rss>

