<?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: Creation of empty FeatureLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creation-of-empty-featurelayer/m-p/1194966#M78023</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes it can be done easily. You can create an empty client-side FeatureLayer by setting its &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#source" target="_self"&gt;source&lt;/A&gt; property to an empty array. Then you can add and remove features from it by calling applyEdits method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is explained here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#creating-a-featurelayer" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#creating-a-featurelayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This sample shows the process:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection-edits/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection-edits/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 16:03:17 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2022-07-22T16:03:17Z</dc:date>
    <item>
      <title>Creation of empty FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creation-of-empty-featurelayer/m-p/1194776#M78011</link>
      <description>&lt;P&gt;Is it possible to create an empty feature layer that is populated by client side data later on?&lt;/P&gt;&lt;P&gt;I've only been able to create FeatureLayer when I have data to populate&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 00:55:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creation-of-empty-featurelayer/m-p/1194776#M78011</guid>
      <dc:creator>Aeseir</dc:creator>
      <dc:date>2022-07-22T00:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of empty FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creation-of-empty-featurelayer/m-p/1194966#M78023</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes it can be done easily. You can create an empty client-side FeatureLayer by setting its &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#source" target="_self"&gt;source&lt;/A&gt; property to an empty array. Then you can add and remove features from it by calling applyEdits method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is explained here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#creating-a-featurelayer" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#creating-a-featurelayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This sample shows the process:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection-edits/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection-edits/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 16:03:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creation-of-empty-featurelayer/m-p/1194966#M78023</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-07-22T16:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of empty FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creation-of-empty-featurelayer/m-p/1195193#M78027</link>
      <description>&lt;P&gt;I've tried doing a empty &lt;STRONG&gt;[]&amp;nbsp;&lt;/STRONG&gt;for source previously but then it just throws this error:&amp;nbsp;&lt;STRONG&gt;table feature layer can't be displayed. &lt;/STRONG&gt;Hence this question :).&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 10:43:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creation-of-empty-featurelayer/m-p/1195193#M78027</guid>
      <dc:creator>Aeseir</dc:creator>
      <dc:date>2022-07-23T10:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of empty FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creation-of-empty-featurelayer/m-p/1195459#M78043</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please read the doc from the link I provided above. &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#creating-a-featurelayer" target="_self"&gt;Creating a FeatureLayer section&lt;/A&gt; in FeatureLayer doc has a section called Add an array of client-side features. This section explains all required schema properties you need to set to successfully initialize your client-side FeatureLayer. You must set the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#geometryType" target="_self"&gt;geometryType&lt;/A&gt; property in the class constructor to let the api know that you are creating a spatial FeatureLayer. Otherwise, the api assumes you are creating a non-spatial FeatureLayer and non spatial FeatureLayer cannot be added to the map.&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 16:21:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creation-of-empty-featurelayer/m-p/1195459#M78043</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-07-25T16:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of empty FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creation-of-empty-featurelayer/m-p/1196205#M78076</link>
      <description>&lt;P&gt;Yep read it through, eventually came across another similar post that resolved it through GeometryType (as per your message here)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 04:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creation-of-empty-featurelayer/m-p/1196205#M78076</guid>
      <dc:creator>Aeseir</dc:creator>
      <dc:date>2022-07-27T04:08:15Z</dc:date>
    </item>
  </channel>
</rss>

