<?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 users can add their content from portal to the map? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-users-can-add-their-content-from-portal-to-the/m-p/1043137#M72331</link>
    <description>&lt;P&gt;Thanks, I see how it works now!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 20:27:12 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-04-01T20:27:12Z</dc:date>
    <item>
      <title>How users can add their content from portal to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-users-can-add-their-content-from-portal-to-the/m-p/1040483#M72186</link>
      <description>&lt;P&gt;How can users add their own data from their My Content or from a URL. Is there any&amp;nbsp; classes in JS API4 that do this ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind of like how the Add Data Widget works in WAB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdamArcichowski_0-1616634780651.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9339i5BCE9E96CEE50A4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdamArcichowski_0-1616634780651.png" alt="AdamArcichowski_0-1616634780651.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 01:17:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-users-can-add-their-content-from-portal-to-the/m-p/1040483#M72186</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-03-25T01:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How users can add their content from portal to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-users-can-add-their-content-from-portal-to-the/m-p/1040503#M72187</link>
      <description>&lt;P&gt;Hi AdamArcichowski,&lt;/P&gt;&lt;P&gt;You can select the drop drown in 'My Organisation' and select 'My Content' to populate a list of the user's content in Portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LongDinh_0-1616648118354.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9340iB53CDC63CDC8E2C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LongDinh_0-1616648118354.png" alt="LongDinh_0-1616648118354.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For URLs, go to the URL tab.&lt;/P&gt;&lt;P&gt;As for JS API4, you should be able to do something the below with the Map and Layer objects:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-keyword"&gt;const&lt;/SPAN&gt;&lt;SPAN&gt; layer = &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; FeatureLayer({ &lt;/SPAN&gt;&lt;SPAN class="hljs-comment"&gt;// URL to the service&lt;/SPAN&gt; &lt;SPAN class="hljs-attr"&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="hljs-string"&gt;"&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0" target="_blank" rel="noopener"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this._map.addLayer(&lt;SPAN&gt;layer &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You should be able to query the user's content through esri/Portal. See:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 05:01:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-users-can-add-their-content-from-portal-to-the/m-p/1040503#M72187</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-03-25T05:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: How users can add their content from portal to the map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-users-can-add-their-content-from-portal-to-the/m-p/1043137#M72331</link>
      <description>&lt;P&gt;Thanks, I see how it works now!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 20:27:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-users-can-add-their-content-from-portal-to-the/m-p/1043137#M72331</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-04-01T20:27:12Z</dc:date>
    </item>
  </channel>
</rss>

