<?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: Add/Remove Layers By Group in Experience Builder Custom Widgets</title>
    <link>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1397263#M255</link>
    <description>&lt;P&gt;This is currently under design and is targeted for the June 2024 update. However, the definitive release is to be confirmed. Tagging&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/160487"&gt;@TianWen&lt;/a&gt;&amp;nbsp;for any other updates.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 14:33:53 GMT</pubDate>
    <dc:creator>AlixVezina</dc:creator>
    <dc:date>2024-03-18T14:33:53Z</dc:date>
    <item>
      <title>Add/Remove Layers By Group</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1295061#M70</link>
      <description>&lt;P&gt;I have put together a widget designed to allow users to add/remove layers at runtime either one-by-one or as a group of related layers, in a simple, user-friendly interface.&lt;/P&gt;&lt;P&gt;Use case it was designed for:&lt;/P&gt;&lt;P&gt;I am building a map to be a central data repository for a city government. Users usually only want to see data from their department, but may occasionally need access to other data. There is far too much data visually/performance wise to have it all loaded at a single time. Many users have little to no GIS or computer skills.&lt;/P&gt;&lt;P&gt;Problems in current widgets this widget is designed to compensate for:&lt;/P&gt;&lt;P&gt;Add Data Widget - Not very user-friendly, does not support adding groups of data at once, does not allow limiting data to curated list (Looks like this feature is coming very soon.)&lt;/P&gt;&lt;P&gt;Layers are usually given random ids.&lt;/P&gt;&lt;P&gt;Map Layers Widget- Users can make layers visible or hidden, but not totally add or remove them which could cause performance issues and an overly cluttered layer list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screenshots:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Widget Collapsed" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72173i6FB0A4575A2F63BD/image-size/small?v=v2&amp;amp;px=200" role="button" title="widget collapsed.png" alt="Widget Collapsed" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Widget Collapsed&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Select layers by group" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72174i836486C19CBE2C19/image-size/small?v=v2&amp;amp;px=200" role="button" title="select by group.png" alt="Select layers by group" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Select layers by group&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Select layers Individually" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72175iDA4CDE5BF50993F2/image-size/small?v=v2&amp;amp;px=200" role="button" title="fully expanded.png" alt="Select layers Individually" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Select layers Individually&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How to use:&lt;/P&gt;&lt;P&gt;Open /src/components/layers.ts and replace the dummy data with the layers and groups you want to use. I recommend setting your Map Widget to a WebMap with only a basemap and no layer data and loading all of your data from this widget.&amp;nbsp;&lt;SPAN&gt;By default, groups[0] will appear selected on load, you may wish to set this to null or a different group. If you chose to have a group selected on load, each layer in that group should be set to activeOnLoad: true. By default, layers are loaded as MapImageLayers to support sublayers. You may wish to change the type to a FeatureLayer or some other type of layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Possible Improvements (I'm not planning to do additional support or improvements.):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Getting the layers.ts data to load from config.json, so it could be edited without the developer edition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;Adding additional properties to the layers and modify the addLayers function to construct the layers &lt;/FONT&gt;differently&lt;FONT face="inherit"&gt;&amp;nbsp;based on these properties. (Such as a property that says if a layer should be a FeatureLayer or a MapImageLayer.)&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit" size="5"&gt;...And if you are interested in these improvements and more, try the &lt;A href="https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-3-0-full-settings-panel-support/ta-p/1570992" target="_self"&gt;Add/Remove Layers 3.0 version&lt;/A&gt;.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 21:57:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1295061#M70</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-12-30T21:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Layers By Group</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1302312#M81</link>
      <description>&lt;P&gt;Great! thank you&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 00:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1302312#M81</guid>
      <dc:creator>FredericPoliart_EsriAU</dc:creator>
      <dc:date>2023-06-23T00:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Layers By Group</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1307149#M82</link>
      <description>&lt;P&gt;Yes Jeffrey, this is great. Nice job. Since the layers added through the widget aren't part of the initial web map where the symbology and popups are normally set, how are you customizing the symbology and popup details?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 07:01:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1307149#M82</guid>
      <dc:creator>BrandonPrice1</dc:creator>
      <dc:date>2023-07-11T07:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Layers By Group</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1307213#M83</link>
      <description>&lt;P&gt;The map layer will pick up the default symbology and popup from the map server.&lt;/P&gt;&lt;P&gt;You can also extend the widget to set the symbology and popupTemplate when loading the layer. If you want to customize the symbology and popupTemplates, I recommend using FeatureLayers rather than MapImageLayers.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 12:19:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1307213#M83</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2023-07-11T12:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Layers By Group</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1394689#M249</link>
      <description>&lt;P&gt;Can added layers then be edited in Experience Builder?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 15:23:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1394689#M249</guid>
      <dc:creator>TommyJackson</dc:creator>
      <dc:date>2024-03-12T15:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Layers By Group</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1394703#M250</link>
      <description>&lt;P&gt;No. At least, not currently or without other customizations. The added layers will not be configured in the Edit Widget of Experience Builder. I think the latest Online update allows for the Edit Widget to edit data from the Add Data Widget, so it is possible that in Developer Edition 1.14, which should be out soon, that the Edit Widget will also be able to pickup layers added from this widget.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 15:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1394703#M250</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-03-12T15:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Layers By Group</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1397263#M255</link>
      <description>&lt;P&gt;This is currently under design and is targeted for the June 2024 update. However, the definitive release is to be confirmed. Tagging&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/160487"&gt;@TianWen&lt;/a&gt;&amp;nbsp;for any other updates.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 14:33:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1397263#M255</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2024-03-18T14:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Layers By Group</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1574054#M429</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/160487"&gt;@TianWen&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/148663"&gt;@AlixVezina&lt;/a&gt;&amp;nbsp;Has this been implemented in in 1.14v and above? I can't seem to edit the layers added using Add Data widget and there is no way to configure them in Edit widget since i am adding them in the runtime.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 17:59:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1574054#M429</guid>
      <dc:creator>SerjStol</dc:creator>
      <dc:date>2025-01-09T17:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Layers By Group</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1574070#M430</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/299119"&gt;@SerjStol&lt;/a&gt;&amp;nbsp;A new setting was added to the Edit widget starting&amp;nbsp;at &lt;STRONG&gt;1.15&lt;/STRONG&gt; to allow for Runtime data editing. See&amp;nbsp;&lt;A href="https://developers.arcgis.com/experience-builder/guide/1.15/whats-new/" target="_blank"&gt;What's new 1.15 | ArcGIS Experience Builder | Esri Developer.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This option needs to be enabled to be able to edit features from editable layers added using the Add data widget.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 18:37:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1574070#M430</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2025-01-09T18:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add/Remove Layers By Group</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1574403#M431</link>
      <description>&lt;P&gt;Thanks for confirming&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/148663"&gt;@AlixVezina&lt;/a&gt;&amp;nbsp;. Unfortunately I have to use 1.14v of ExB Dev as I am hosting a custom widget that needs to be used in Enterprise 11.3. I see that Enterprise 11.4 now has this updated Edit widget, so if the customer upgrades to 11.4 it will be possible to edit runtime feature layers generated by the custom widget?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 17:14:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/add-remove-layers-by-group/m-p/1574403#M431</guid>
      <dc:creator>SerjStol</dc:creator>
      <dc:date>2025-01-10T17:14:32Z</dc:date>
    </item>
  </channel>
</rss>

