<?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 Layers don't show on arcgis online after saveAs() method of WebMap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layers-don-t-show-on-arcgis-online-after-saveas/m-p/1074571#M73717</link>
    <description>&lt;P&gt;Hi, all&lt;/P&gt;&lt;P&gt;I used saveAs function of WebMap including FeatureLayers. The WebMap is successfully imported to arcgis online. But&amp;nbsp;FeatureLayers disappear. However, I can see the layers through the thumbnail (the orange area is FeatureLayer I added to the WebMap with javascript). What's the reason causing this problem?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RandyLiu6410_0-1625120056843.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17460iAB7AFF3F49542EDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="RandyLiu6410_0-1625120056843.png" alt="RandyLiu6410_0-1625120056843.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RandyLiu6410_1-1625120064792.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17461i2B74BB517A30BE52/image-size/large?v=v2&amp;amp;px=999" role="button" title="RandyLiu6410_1-1625120064792.png" alt="RandyLiu6410_1-1625120064792.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;            portal.load().then(() =&amp;gt; {
              map.updateFrom(view).then(() =&amp;gt; {
                map
                  .saveAs({
                    title: nameInputRef.current.value,
                    portal: portal,
                  })
                  // Saved successfully
                  .then(function (item) {
                    // link to the newly-created web scene item
                    var itemPageUrl =
                      item.portal.url + "/home/item.html?id=" + item.id;
                    var link =
                      '&amp;lt;a target="_blank" href="' +
                      itemPageUrl +
                      '"&amp;gt;' +
                      nameInputRef.current.value +
                      "&amp;lt;/a&amp;gt;";

                    statusMessage(
                      "Save WebMap",
                      "&amp;lt;br&amp;gt; Successfully saved as &amp;lt;i&amp;gt;" + link + "&amp;lt;/i&amp;gt;"
                    );
                  })
                  // Save didn't work correctly
                  .catch(function (error) {
                    statusMessage("Save WebMap", "&amp;lt;br&amp;gt; Error " + error);
                  });
              });
            });
          }}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jul 2021 06:16:18 GMT</pubDate>
    <dc:creator>RandyLiu6410</dc:creator>
    <dc:date>2021-07-01T06:16:18Z</dc:date>
    <item>
      <title>Layers don't show on arcgis online after saveAs() method of WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layers-don-t-show-on-arcgis-online-after-saveas/m-p/1074571#M73717</link>
      <description>&lt;P&gt;Hi, all&lt;/P&gt;&lt;P&gt;I used saveAs function of WebMap including FeatureLayers. The WebMap is successfully imported to arcgis online. But&amp;nbsp;FeatureLayers disappear. However, I can see the layers through the thumbnail (the orange area is FeatureLayer I added to the WebMap with javascript). What's the reason causing this problem?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RandyLiu6410_0-1625120056843.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17460iAB7AFF3F49542EDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="RandyLiu6410_0-1625120056843.png" alt="RandyLiu6410_0-1625120056843.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RandyLiu6410_1-1625120064792.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17461i2B74BB517A30BE52/image-size/large?v=v2&amp;amp;px=999" role="button" title="RandyLiu6410_1-1625120064792.png" alt="RandyLiu6410_1-1625120064792.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;            portal.load().then(() =&amp;gt; {
              map.updateFrom(view).then(() =&amp;gt; {
                map
                  .saveAs({
                    title: nameInputRef.current.value,
                    portal: portal,
                  })
                  // Saved successfully
                  .then(function (item) {
                    // link to the newly-created web scene item
                    var itemPageUrl =
                      item.portal.url + "/home/item.html?id=" + item.id;
                    var link =
                      '&amp;lt;a target="_blank" href="' +
                      itemPageUrl +
                      '"&amp;gt;' +
                      nameInputRef.current.value +
                      "&amp;lt;/a&amp;gt;";

                    statusMessage(
                      "Save WebMap",
                      "&amp;lt;br&amp;gt; Successfully saved as &amp;lt;i&amp;gt;" + link + "&amp;lt;/i&amp;gt;"
                    );
                  })
                  // Save didn't work correctly
                  .catch(function (error) {
                    statusMessage("Save WebMap", "&amp;lt;br&amp;gt; Error " + error);
                  });
              });
            });
          }}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 06:16:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layers-don-t-show-on-arcgis-online-after-saveas/m-p/1074571#M73717</guid>
      <dc:creator>RandyLiu6410</dc:creator>
      <dc:date>2021-07-01T06:16:18Z</dc:date>
    </item>
  </channel>
</rss>

