<?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 do I get the layer ID of a layer on a map widget in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-do-i-get-the-layer-id-of-a-layer-on-a-map/m-p/1506133#M13758</link>
    <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#allLayers" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#allLayers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The simplest way to find the id of a layer if you don't know it is to console log all layers and look through the results with your browser tools.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;console.log(jimuMapView.view.map.allLayers)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 17 Jul 2024 12:33:48 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2024-07-17T12:33:48Z</dc:date>
    <item>
      <title>How do I get the layer ID of a layer on a map widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-do-i-get-the-layer-id-of-a-layer-on-a-map/m-p/1505938#M13747</link>
      <description>&lt;P&gt;Hi, so I'm working on creating a custom widget that will export the data of a layer into a CSV file. But I'm stuck on the part where I have to retrieve the layer ID of the layer I want to export. This is how I'm trying to do it.&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;const featureLayer = jimuMapView.view.map.findLayerById('layerid') as esri.FeatureLayer;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;layerid is where the retrieved ID would go. Thx in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 19:54:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-do-i-get-the-layer-id-of-a-layer-on-a-map/m-p/1505938#M13747</guid>
      <dc:creator>ShahranNewaz</dc:creator>
      <dc:date>2024-07-16T19:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the layer ID of a layer on a map widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-do-i-get-the-layer-id-of-a-layer-on-a-map/m-p/1506028#M13752</link>
      <description>&lt;P&gt;Hi&amp;nbsp;ShahranNewaz,&lt;/P&gt;&lt;P&gt;Is your problem that you don't know the id of the layer to be exported?&amp;nbsp;If you don’t know the layer id, how do you know which layer to export?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 02:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-do-i-get-the-layer-id-of-a-layer-on-a-map/m-p/1506028#M13752</guid>
      <dc:creator>QunSun</dc:creator>
      <dc:date>2024-07-17T02:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the layer ID of a layer on a map widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-do-i-get-the-layer-id-of-a-layer-on-a-map/m-p/1506133#M13758</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#allLayers" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#allLayers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The simplest way to find the id of a layer if you don't know it is to console log all layers and look through the results with your browser tools.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;console.log(jimuMapView.view.map.allLayers)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Jul 2024 12:33:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-do-i-get-the-layer-id-of-a-layer-on-a-map/m-p/1506133#M13758</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-07-17T12:33:48Z</dc:date>
    </item>
  </channel>
</rss>

