<?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: Is there a universal way to draw user's content on web map in 3.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-universal-way-to-draw-user-s-content-on/m-p/453624#M41923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, 4.x beat 3.x in this aspect. I am just so confused about the either "displayName" or "type" of a item cannot determine the resource "Real" type individually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jul 2017 19:10:46 GMT</pubDate>
    <dc:creator>YukiHuang</dc:creator>
    <dc:date>2017-07-24T19:10:46Z</dc:date>
    <item>
      <title>Is there a universal way to draw user's content on web map in 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-universal-way-to-draw-user-s-content-on/m-p/453622#M41921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working with a web app, which could allow the users to log in with their ArcGIS Online Accounts and draw their contents on the map. The confusing part of this process is that it is really hard to determine&amp;nbsp;which Function should I use to draw the layer. I come up with a matrix about the most used layers, and which function&amp;nbsp;that needed to be used based on item's metadata. This might be incomplete:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE width="985"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="287"&gt;type&lt;/TD&gt;&lt;TD width="317"&gt;displayName&lt;/TD&gt;&lt;TD width="247"&gt;ArcGIS Function&lt;/TD&gt;&lt;TD width="134"&gt;URL(ID) to Use&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Web Map&lt;/TD&gt;&lt;TD&gt;Web Map&lt;/TD&gt;&lt;TD&gt;Map&lt;/TD&gt;&lt;TD&gt;itemid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;KML&lt;/TD&gt;&lt;TD&gt;KML&lt;/TD&gt;&lt;TD&gt;KMLLayer&lt;/TD&gt;&lt;TD&gt;itemDataUrl&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feature Service&lt;/TD&gt;&lt;TD&gt;Feature layer&lt;/TD&gt;&lt;TD&gt;FeatureLayer&lt;/TD&gt;&lt;TD&gt;url&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feature Collection&lt;/TD&gt;&lt;TD&gt;Feature layer&lt;/TD&gt;&lt;TD&gt;FeatureLayer&lt;/TD&gt;&lt;TD&gt;itemDataUrl&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Image Service&lt;/TD&gt;&lt;TD&gt;Imagery Layer&lt;/TD&gt;&lt;TD&gt;ArcGISImageServiceLayer&lt;/TD&gt;&lt;TD&gt;url&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vector Tile Service&lt;/TD&gt;&lt;TD&gt;Tile Layer&lt;/TD&gt;&lt;TD&gt;VectorTileLayer&lt;/TD&gt;&lt;TD&gt;url&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Map Service&lt;/TD&gt;&lt;TD&gt;Tile Layer&lt;/TD&gt;&lt;TD&gt;ArcGISTiledMapServiceLayer&lt;/TD&gt;&lt;TD&gt;url&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Map Service&lt;/TD&gt;&lt;TD&gt;Map Image Layer&lt;/TD&gt;&lt;TD&gt;ArcGISDynamicMapServiceLayer&lt;/TD&gt;&lt;TD&gt;url&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions for the best practice for this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 15:56:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-universal-way-to-draw-user-s-content-on/m-p/453622#M41921</guid>
      <dc:creator>YukiHuang</dc:creator>
      <dc:date>2017-07-21T15:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a universal way to draw user's content on web map in 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-universal-way-to-draw-user-s-content-on/m-p/453623#M41922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a Layer.fromPortalItem function in 4.XX but not in 3.XX as far as I know. &amp;nbsp;You may just have to call a different function based on the item type for each item in my contents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 16:46:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-universal-way-to-draw-user-s-content-on/m-p/453623#M41922</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-07-21T16:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a universal way to draw user's content on web map in 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-universal-way-to-draw-user-s-content-on/m-p/453624#M41923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, 4.x beat 3.x in this aspect. I am just so confused about the either "displayName" or "type" of a item cannot determine the resource "Real" type individually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 19:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-universal-way-to-draw-user-s-content-on/m-p/453624#M41923</guid>
      <dc:creator>YukiHuang</dc:creator>
      <dc:date>2017-07-24T19:10:46Z</dc:date>
    </item>
  </channel>
</rss>

