<?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 Saving a geometry from a standalone ESRI javascript app to a WebMap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-a-geometry-from-a-standalone-esri/m-p/1023862#M71659</link>
    <description>&lt;P&gt;In 4.x, I have a basic working app using the custom search source widget to fetch from an external API and display it on the webmap. Identical to &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-customsource/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-customsource/&lt;/A&gt; for all intents and purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have basic webmap save function which at this point just saves the underlying webmap to portal, but of course it doesn't contain the searchsource geometries as they aren't added as a true layer. I'm using &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#saveAs" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#saveAs&lt;/A&gt; for saveAs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the problem is I don't know how to get my geometries to be saved with the WebMap. I see there's limitations of the types of FeatureLayers that can be saved (have to be backed by a FeatureService or MapService). I'm not sure how to create and populate a FeatureService from the Javacript API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, I could use the 4.x Request Interceptors to add it into the saveAs requests manually, but I'm not sure of the workflow that I need to do to kick off what I would like to do.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 13:54:06 GMT</pubDate>
    <dc:creator>GregoryLewis2</dc:creator>
    <dc:date>2021-02-05T13:54:06Z</dc:date>
    <item>
      <title>Saving a geometry from a standalone ESRI javascript app to a WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-a-geometry-from-a-standalone-esri/m-p/1023862#M71659</link>
      <description>&lt;P&gt;In 4.x, I have a basic working app using the custom search source widget to fetch from an external API and display it on the webmap. Identical to &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-customsource/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-customsource/&lt;/A&gt; for all intents and purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have basic webmap save function which at this point just saves the underlying webmap to portal, but of course it doesn't contain the searchsource geometries as they aren't added as a true layer. I'm using &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#saveAs" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#saveAs&lt;/A&gt; for saveAs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the problem is I don't know how to get my geometries to be saved with the WebMap. I see there's limitations of the types of FeatureLayers that can be saved (have to be backed by a FeatureService or MapService). I'm not sure how to create and populate a FeatureService from the Javacript API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, I could use the 4.x Request Interceptors to add it into the saveAs requests manually, but I'm not sure of the workflow that I need to do to kick off what I would like to do.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 13:54:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/saving-a-geometry-from-a-standalone-esri/m-p/1023862#M71659</guid>
      <dc:creator>GregoryLewis2</dc:creator>
      <dc:date>2021-02-05T13:54:06Z</dc:date>
    </item>
  </channel>
</rss>

