<?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 add feature layer created from graphicslayer to MapImageLayer in 4.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-feature-layer-created-from/m-p/1112872#M75138</link>
    <description>&lt;P&gt;I found a hack.&lt;/P&gt;&lt;P&gt;1. To display the points when the user filters change (returning x,y values from a SQL Server search), I create a graphics layer and add to the map.&amp;nbsp; The Legend widget cannot use graphics layers.&lt;/P&gt;&lt;P&gt;2. To display the legend with my point symbols, I create a FeatureLayer with a renderer and use the graphics layer as the source, but I use a definition expression to exclude the point features from being shown on the map.&amp;nbsp; The reason I cannot use the FeatureLayer in the map is because the values (point features) won't change after the first time the source is defined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using ArcGIS API for JavaScript version 4.14.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Nov 2021 15:50:37 GMT</pubDate>
    <dc:creator>LoriMcCormack1</dc:creator>
    <dc:date>2021-11-01T15:50:37Z</dc:date>
    <item>
      <title>How to add feature layer created from graphicslayer to MapImageLayer in 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-feature-layer-created-from/m-p/1111395#M75080</link>
      <description>&lt;P&gt;I want to add my graphics layer to the legend widget, so I created a feature layer (using the graphics layer as the source) and added it to the map.&amp;nbsp; However, when I change the graphics layer based on a user's filter selection, the symbols don't change.&amp;nbsp; So, I want to add the feature layer to my MapImageLayer for points I have in a map service.&lt;/P&gt;&lt;P&gt;Where can I find the reference for source: and datasource: within the sublayer definition?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe what I need to do is something like in esri's sample called layers-dynamicdatalayer-query-table.&amp;nbsp; However, I want to reference my feature layer that I create on the fly each time the graphics layer changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 18:49:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-feature-layer-created-from/m-p/1111395#M75080</guid>
      <dc:creator>LoriMcCormack1</dc:creator>
      <dc:date>2021-10-26T18:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add feature layer created from graphicslayer to MapImageLayer in 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-feature-layer-created-from/m-p/1112872#M75138</link>
      <description>&lt;P&gt;I found a hack.&lt;/P&gt;&lt;P&gt;1. To display the points when the user filters change (returning x,y values from a SQL Server search), I create a graphics layer and add to the map.&amp;nbsp; The Legend widget cannot use graphics layers.&lt;/P&gt;&lt;P&gt;2. To display the legend with my point symbols, I create a FeatureLayer with a renderer and use the graphics layer as the source, but I use a definition expression to exclude the point features from being shown on the map.&amp;nbsp; The reason I cannot use the FeatureLayer in the map is because the values (point features) won't change after the first time the source is defined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using ArcGIS API for JavaScript version 4.14.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 15:50:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-feature-layer-created-from/m-p/1112872#M75138</guid>
      <dc:creator>LoriMcCormack1</dc:creator>
      <dc:date>2021-11-01T15:50:37Z</dc:date>
    </item>
  </channel>
</rss>

