<?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: FeatureLayerView queryFeatures doesn't return feature symbol in 4.11 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayerview-queryfeatures-doesn-t-return/m-p/1045298#M72419</link>
    <description>&lt;P&gt;Turns out symbolUtils is there to fix this exact problem. &amp;nbsp;Who knew (I certainly didn’t when I asked this question)?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Apr 2021 23:30:26 GMT</pubDate>
    <dc:creator>Jay_Gregory</dc:creator>
    <dc:date>2021-04-08T23:30:26Z</dc:date>
    <item>
      <title>FeatureLayerView queryFeatures doesn't return feature symbol in 4.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayerview-queryfeatures-doesn-t-return/m-p/1045174#M72414</link>
      <description>&lt;P&gt;I am trying to implement a popup action that allows a user to "pin" a selected feature to the map by adding it to the view's graphics layer (so it would remain even if the source layer is removed or turned off).&amp;nbsp; I did not think this would be that hard but I have not been able to get the selected feature symbol (for cloning the graphic then adding to the graphics layer).&amp;nbsp; I have tried it two different ways below -&lt;/P&gt;&lt;P&gt;One is by using the popup trigger action event, and getting the selected feature.&lt;/P&gt;&lt;P&gt;The second is using the layer's feature layer view and querying features within the extent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both get the graphics I need, except the symbol is missing - just the attributes and geometry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what I'm doing wrong?&amp;nbsp; Doesn't anyone have any other ideas of how to implement this feature?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;mapView.popup.on("trigger-action", ({action, target}) =&amp;gt; {
    const selectedFeature = target.selectedFeature.clone();
    console.log(selectedFeature.symbol) //this is null in my app
});

featureLayerView.queryFeatures(
{geometry: mapView.extent,
returnGeometry: true})
.then(featureSet=&amp;gt;{
     console.log(featureSet); //this has all features in the current extent, but each graphic only contains geometry and attributes, not the symbol
 });
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Apr 2021 17:54:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayerview-queryfeatures-doesn-t-return/m-p/1045174#M72414</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2021-04-08T17:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayerView queryFeatures doesn't return feature symbol in 4.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayerview-queryfeatures-doesn-t-return/m-p/1045298#M72419</link>
      <description>&lt;P&gt;Turns out symbolUtils is there to fix this exact problem. &amp;nbsp;Who knew (I certainly didn’t when I asked this question)?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 23:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayerview-queryfeatures-doesn-t-return/m-p/1045298#M72419</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2021-04-08T23:30:26Z</dc:date>
    </item>
  </channel>
</rss>

