<?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 publish a newly created FeatureLayer to ArcGIS Online in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-publish-a-newly-created-featurelayer-to/m-p/323906#M29849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. This may be a bit outside the scope of this question, but I believe I can mimic the functionality I'm looking for by using the arcgis-rest-js modules to &lt;STRONG&gt;createItem()&lt;/STRONG&gt; in create a new feature layer in ArcGIS Online, then use the javascript api's &lt;STRONG&gt;featureLayer.applyEdits()&lt;/STRONG&gt; functionality to add in Graphics objects as new features. Can you/anyone confirm if this could work as intended?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2019 20:26:07 GMT</pubDate>
    <dc:creator>JonM_</dc:creator>
    <dc:date>2019-12-19T20:26:07Z</dc:date>
    <item>
      <title>How to publish a newly created FeatureLayer to ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-publish-a-newly-created-featurelayer-to/m-p/323904#M29847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my code, I have created a new FeatureLayer using client-side graphics:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
   source&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; array_of_Graphics_Objects&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
   &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍

map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fl&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The FeatureLayer is created and displaying successfully in the MapView. I would now like to publish it to my ArcGIS Online account so the contents are saved as a hosted FeatureLayer. Any help on how to go about this would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:23:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-publish-a-newly-created-featurelayer-to/m-p/323904#M29847</guid>
      <dc:creator>JonM_</dc:creator>
      <dc:date>2021-12-11T15:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to publish a newly created FeatureLayer to ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-publish-a-newly-created-featurelayer-to/m-p/323905#M29848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We currently do not have this functionality with the 4x version of the JS API. Soon we will have the ability to save webmaps. You can test this out with the js-next:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/feedback-js-api-next/blob/master/CHANGELOG.md" title="https://github.com/Esri/feedback-js-api-next/blob/master/CHANGELOG.md"&gt;feedback-js-api-next/CHANGELOG.md at master · Esri/feedback-js-api-next · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 22:31:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-publish-a-newly-created-featurelayer-to/m-p/323905#M29848</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2019-12-17T22:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to publish a newly created FeatureLayer to ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-publish-a-newly-created-featurelayer-to/m-p/323906#M29849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. This may be a bit outside the scope of this question, but I believe I can mimic the functionality I'm looking for by using the arcgis-rest-js modules to &lt;STRONG&gt;createItem()&lt;/STRONG&gt; in create a new feature layer in ArcGIS Online, then use the javascript api's &lt;STRONG&gt;featureLayer.applyEdits()&lt;/STRONG&gt; functionality to add in Graphics objects as new features. Can you/anyone confirm if this could work as intended?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 20:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-publish-a-newly-created-featurelayer-to/m-p/323906#M29849</guid>
      <dc:creator>JonM_</dc:creator>
      <dc:date>2019-12-19T20:26:07Z</dc:date>
    </item>
  </channel>
</rss>

