<?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 Can anybody explain me difference between  url and portale ID in feature layer ??  in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-anybody-explain-me-difference-between-url-and/m-p/360365#M33405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Jul 2019 10:43:31 GMT</pubDate>
    <dc:creator>AnupamSharma</dc:creator>
    <dc:date>2019-07-21T10:43:31Z</dc:date>
    <item>
      <title>Can anybody explain me difference between  url and portale ID in feature layer ??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-anybody-explain-me-difference-between-url-and/m-p/360365#M33405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jul 2019 10:43:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-anybody-explain-me-difference-between-url-and/m-p/360365#M33405</guid>
      <dc:creator>AnupamSharma</dc:creator>
      <dc:date>2019-07-21T10:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can anybody explain me difference between  url and portale ID in feature layer ??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-anybody-explain-me-difference-between-url-and/m-p/360366#M33406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/369213" target="_blank"&gt;Anupam,&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are different ways of accessing data on a feature service. &amp;nbsp;PortalID is used w&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;hen loading the layer via the portalitem&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;property. &amp;nbsp;&lt;/SPAN&gt;&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="comment token"&gt;// loads the third layer in the given Portal Item&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; layer &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;
  portalItem&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"8d26f04f31f642b6828b7023b84c2188"&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
  layerId&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&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="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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;The url method&amp;nbsp;&lt;SPAN&gt;pointing the service and not the layer &lt;/SPAN&gt;&lt;SPAN&gt;directly in the Feature Service.&lt;/SPAN&gt;&lt;/SPAN&gt;&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="comment token"&gt;// Can also be used if URL points to service and not layer&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; layer &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;
  &lt;SPAN class="comment token"&gt;// Notice that the url doesn't end with /2&lt;/SPAN&gt;
  url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"http://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/MonterreyBayCanyon_WFL/FeatureServer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
  layerId&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&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="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;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Additional information is available at&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#layerId" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#layerId" rel="nofollow noopener noreferrer" target="_blank"&gt;FeatureLayer | ArcGIS API for JavaScript 4.12&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;The ID information can be viewed&amp;nbsp;in the objects Jason using the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fago-assistant.esri.com%2F" style="color: #287433; border: 0px; font-weight: inherit; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;ArcGIS Online Assistant&lt;/A&gt;&amp;nbsp;as posted by&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/154948" target="_blank"&gt;Christopher Schreiber&lt;/A&gt;&amp;nbsp;in the post&amp;nbsp;&lt;A href="https://community.esri.com/thread/163780" target="_blank"&gt;How do I get the ID of a web map layer?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #3d3d3d; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #3d3d3d; border: 0px;"&gt;To view a webmap's JSON:&lt;/P&gt;&lt;P style="color: #3d3d3d; border: 0px;"&gt;1.Login&lt;/P&gt;&lt;P style="color: #3d3d3d; border: 0px;"&gt;2. Select the "I want to..." list in the top menu&lt;/P&gt;&lt;P style="color: #3d3d3d; border: 0px;"&gt;&lt;IMG __jive_id="453736" class="image-1 jive-image" height="37" src="https://community.esri.com/legacyfs/online/453736_pastedImage_2.png" style="border: 0px; font-weight: inherit; margin: 2px 20px 0px;" width="245" /&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; border: 0px;"&gt;3. Select "View an Item's JSON" from the list.&lt;/P&gt;&lt;P style="color: #3d3d3d; border: 0px;"&gt;4. Select the map or Item&amp;nbsp;from the lists on the left of the page.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-anybody-explain-me-difference-between-url-and/m-p/360366#M33406</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2021-12-11T16:48:32Z</dc:date>
    </item>
  </channel>
</rss>

