<?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 Programatically filter LayerList widgets in JS API 4.9 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programatically-filter-layerlist-widgets-in-js-api/m-p/532905#M49675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an app with two LayerList widgets in different sections of the app.&amp;nbsp; One layer list widget is displaying all layers added to the map.&amp;nbsp; I want to make it so the second layer list widget only displays a subset of the layers added to the map - ie, layers a user uploads from their computer locally (geojson, csv, kml, etc.).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way in the listItemCreatedFunction to just remove layers that don't meet this criteria?&amp;nbsp; Unclear how to achieve this.&amp;nbsp; With only one layerlist widget I could set listMode on the layer to 'hide,' but this won't work for my purposes, since my first layer list needs to display all layers.&amp;nbsp; I haven't figured out how to intercept this function and just not add the item to the widget in the first place....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2019 17:16:12 GMT</pubDate>
    <dc:creator>Jay_Gregory</dc:creator>
    <dc:date>2019-02-25T17:16:12Z</dc:date>
    <item>
      <title>Programatically filter LayerList widgets in JS API 4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programatically-filter-layerlist-widgets-in-js-api/m-p/532905#M49675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an app with two LayerList widgets in different sections of the app.&amp;nbsp; One layer list widget is displaying all layers added to the map.&amp;nbsp; I want to make it so the second layer list widget only displays a subset of the layers added to the map - ie, layers a user uploads from their computer locally (geojson, csv, kml, etc.).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way in the listItemCreatedFunction to just remove layers that don't meet this criteria?&amp;nbsp; Unclear how to achieve this.&amp;nbsp; With only one layerlist widget I could set listMode on the layer to 'hide,' but this won't work for my purposes, since my first layer list needs to display all layers.&amp;nbsp; I haven't figured out how to intercept this function and just not add the item to the widget in the first place....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 17:16:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programatically-filter-layerlist-widgets-in-js-api/m-p/532905#M49675</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2019-02-25T17:16:12Z</dc:date>
    </item>
  </channel>
</rss>

