<?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 How to retrieve complete layer list from a Map Service in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-retrieve-complete-layer-list-from-a-map/m-p/1578653#M17084</link>
    <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;I am developing a custom widget, and I am trying to allow the user to load a single layer from a Map Service published on ArcGIS Server onto the map.&lt;BR /&gt;I would like to create a Select panel that displays the complete list of layers available in the Map Service so that the user can choose which layer to load. What is the best way to retrieve this list?&lt;BR /&gt;I'm using ExB Developer 1.15&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2025 14:33:05 GMT</pubDate>
    <dc:creator>LorenzoFerrari</dc:creator>
    <dc:date>2025-01-24T14:33:05Z</dc:date>
    <item>
      <title>How to retrieve complete layer list from a Map Service</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-retrieve-complete-layer-list-from-a-map/m-p/1578653#M17084</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;I am developing a custom widget, and I am trying to allow the user to load a single layer from a Map Service published on ArcGIS Server onto the map.&lt;BR /&gt;I would like to create a Select panel that displays the complete list of layers available in the Map Service so that the user can choose which layer to load. What is the best way to retrieve this list?&lt;BR /&gt;I'm using ExB Developer 1.15&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 14:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-retrieve-complete-layer-list-from-a-map/m-p/1578653#M17084</guid>
      <dc:creator>LorenzoFerrari</dc:creator>
      <dc:date>2025-01-24T14:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve complete layer list from a Map Service</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-retrieve-complete-layer-list-from-a-map/m-p/1578665#M17088</link>
      <description>&lt;P&gt;You can load the MapImageLayer into memory, but not the map using this code.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Typical usage
let layer = new MapImageLayer({
  // URL to the map service
  url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer",
});&lt;/LI-CODE&gt;&lt;P&gt;Now the single layers will be available as an array on layer.sublayers.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#sublayers" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#sublayers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 14:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-retrieve-complete-layer-list-from-a-map/m-p/1578665#M17088</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2025-01-24T14:49:19Z</dc:date>
    </item>
  </channel>
</rss>

