<?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: Programmatically identifying the hosted featurelayer and featurelayer view in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/programmatically-identifying-the-hosted/m-p/1086108#M1025</link>
    <description>&lt;P&gt;Thanks a lot Bjorn. It works well as expected !&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 12:37:52 GMT</pubDate>
    <dc:creator>MayoTestUser</dc:creator>
    <dc:date>2021-08-05T12:37:52Z</dc:date>
    <item>
      <title>Programmatically identifying the hosted featurelayer and featurelayer view</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/programmatically-identifying-the-hosted/m-p/1085277#M1021</link>
      <description>&lt;P&gt;Hi, I have hosted a feature layer in ArcGIS Online 10.8 and created a feature layer view from the hosted feature layer. I consumed these two as portal items in my webmap application using ESRI JavaScript API 4.19.&lt;/P&gt;&lt;P&gt;It is required to find out which one is the feature layer view from these two portal items through the JavaScript API.&lt;/P&gt;&lt;P&gt;Names will be unique for these layer but however the need is to identify from the property/methods of these layers.&lt;/P&gt;&lt;P&gt;Kindly suggest me. Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 12:27:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/programmatically-identifying-the-hosted/m-p/1085277#M1021</guid>
      <dc:creator>MayoTestUser</dc:creator>
      <dc:date>2021-08-03T12:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically identifying the hosted featurelayer and featurelayer view</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/programmatically-identifying-the-hosted/m-p/1085868#M1023</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;FeatureLayer.sourceJSON&lt;/STRONG&gt; contains all the metadata from the FeatureLayer REST endpoint, including what you need to distinguish between the View Layer and original feature layer.&lt;/P&gt;&lt;P&gt;For example, in this case, the metadata JSON for hosted layer views include a "isView: true".&amp;nbsp; So you could check for &lt;STRONG&gt;featureLayer.sourceJSON.isView&lt;/STRONG&gt;&amp;nbsp;.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#sourceJSON" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#sourceJSON&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/DrinkingWaterOSM_viewlayer/FeatureServer/0?f=pjson" target="_blank" rel="noopener"&gt;https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/DrinkingWaterOSM_viewlayer/FeatureServer/0?f=pjson&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 18:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/programmatically-identifying-the-hosted/m-p/1085868#M1023</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2021-08-04T18:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically identifying the hosted featurelayer and featurelayer view</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/programmatically-identifying-the-hosted/m-p/1086108#M1025</link>
      <description>&lt;P&gt;Thanks a lot Bjorn. It works well as expected !&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 12:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/programmatically-identifying-the-hosted/m-p/1086108#M1025</guid>
      <dc:creator>MayoTestUser</dc:creator>
      <dc:date>2021-08-05T12:37:52Z</dc:date>
    </item>
  </channel>
</rss>

