<?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 can I add a custom widget to my ArcGIS Experience Builder application? in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-add-a-custom-widget-to-my-arcgis/m-p/1281760#M6751</link>
    <description>&lt;P&gt;Would the Filter widget help?&lt;BR /&gt;&lt;A href="https://doc.arcgis.com/en/experience-builder/latest/configure-widgets/filter-widget.htm" target="_blank" rel="noopener"&gt;Filter widget—ArcGIS Experience Builder | Documentation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;"&lt;SPAN&gt;The Filter widget allows you to limit the visibility of features in one or more layers to only those that meet the expression criteria. Changes made in a Filter widget affect&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://doc.arcgis.com/en/experience-builder/latest/build-apps/select-data.htm#ESRI_SECTION1_63589EFFF4BF4E128652260B89A604D5" target="_blank" rel="noopener"&gt;data across your app&lt;/A&gt;&lt;SPAN&gt;, so other widgets that use the same layers are filtered accordingly."&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2023 09:32:37 GMT</pubDate>
    <dc:creator>SimonSchütte_ct</dc:creator>
    <dc:date>2023-04-24T09:32:37Z</dc:date>
    <item>
      <title>How can I add a custom widget to my ArcGIS Experience Builder application?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-add-a-custom-widget-to-my-arcgis/m-p/1281714#M6749</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is it possible to create a custom function that toggles all layers on and off with a single button in ArcGIS Experience Builder?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The reason why I would like to create a custom function to toggle all layers on and off with a single button in ArcGIS Experience Builder. Its is because there are currently around 30 layers on the map that need to be manually toggled on and off. This is a lot of work, and I want to make it much easier by adding a button that can turn everything on or off. However, I am unable to find a function within the button that allows me to add custom commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have created a code for the custom function to toggle all layers on and off, but I am unable to add it to the button:&lt;BR /&gt;&lt;EM&gt;view.map.layers.forEach(layer =&amp;gt; { layer.visible = !layer.visible; });&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope that you can possibly help me further.. Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Atlantikwall&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AtlantikwallMuseum_1-1682284065073.png" style="width: 692px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68857iC9FA281CAD8EC0AD/image-dimensions/692x351?v=v2" width="692" height="351" role="button" title="AtlantikwallMuseum_1-1682284065073.png" alt="AtlantikwallMuseum_1-1682284065073.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is an example. We currently have 30 separate layers, but we want to add a button that toggles all layers on and off at once, so that we don't have to do it manually.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nederlands:&lt;/P&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Is het mogelijk om een aangepaste functie te maken die alle lagen in ArcGIS Experience Builder met één knop aan en uit kan zetten?&lt;/P&gt;&lt;P&gt;De reden waarom ik graag een aangepaste functie wil maken om alle lagen met één knop aan en uit te zetten in ArcGIS Experience Builder is omdat er momenteel ongeveer 30 lagen op de kaart zijn die handmatig aan en uit gezet moeten worden. Dit is veel werk en ik wil het veel gemakkelijker maken door een knop toe te voegen die alles aan of uit kan zetten. Ik kan echter geen functie binnen de knop vinden waarmee ik aangepaste opdrachten kan toevoegen.&lt;/P&gt;&lt;P&gt;Ik heb een code gemaakt voor de aangepaste functie om alle lagen aan en uit te zetten, maar ik kan deze niet aan de knop toevoegen: view.map.layers.forEach(layer =&amp;gt; { layer.visible = !layer.visible; });&lt;/P&gt;&lt;P&gt;Ik hoop dat jullie me verder kunnen helpen. Bij voorbaat dank.&lt;/P&gt;&lt;P&gt;Atlantikwall&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 21:11:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-add-a-custom-widget-to-my-arcgis/m-p/1281714#M6749</guid>
      <dc:creator>Atlantikwall-Museum</dc:creator>
      <dc:date>2023-04-23T21:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a custom widget to my ArcGIS Experience Builder application?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-add-a-custom-widget-to-my-arcgis/m-p/1281760#M6751</link>
      <description>&lt;P&gt;Would the Filter widget help?&lt;BR /&gt;&lt;A href="https://doc.arcgis.com/en/experience-builder/latest/configure-widgets/filter-widget.htm" target="_blank" rel="noopener"&gt;Filter widget—ArcGIS Experience Builder | Documentation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;"&lt;SPAN&gt;The Filter widget allows you to limit the visibility of features in one or more layers to only those that meet the expression criteria. Changes made in a Filter widget affect&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://doc.arcgis.com/en/experience-builder/latest/build-apps/select-data.htm#ESRI_SECTION1_63589EFFF4BF4E128652260B89A604D5" target="_blank" rel="noopener"&gt;data across your app&lt;/A&gt;&lt;SPAN&gt;, so other widgets that use the same layers are filtered accordingly."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 09:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-add-a-custom-widget-to-my-arcgis/m-p/1281760#M6751</guid>
      <dc:creator>SimonSchütte_ct</dc:creator>
      <dc:date>2023-04-24T09:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a custom widget to my ArcGIS Experience Builder application?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-add-a-custom-widget-to-my-arcgis/m-p/1283227#M6799</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677261"&gt;@Atlantikwall-Museum&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think a Bookmark widget could be a workaround to achieve what you're after - since layers' visibility will be remembered in a bookmark:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a Bookmark widget, choose any template and connect it to your map widget&lt;/LI&gt;&lt;LI&gt;Add a new bookmark, choose map layers tool and toggle layers' visibility as your wish, save the bookmark&lt;/LI&gt;&lt;LI&gt;At runtime, you can click on this bookmark to view layers as you set before (you can change extent or add drawings in bookmark as well)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 27 Apr 2023 08:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-add-a-custom-widget-to-my-arcgis/m-p/1283227#M6799</guid>
      <dc:creator>Shen_Zhang</dc:creator>
      <dc:date>2023-04-27T08:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a custom widget to my ArcGIS Experience Builder application?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-add-a-custom-widget-to-my-arcgis/m-p/1291017#M7001</link>
      <description>&lt;P&gt;Thanks for the help. The problem is solved and it work as it should be &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 12:59:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-can-i-add-a-custom-widget-to-my-arcgis/m-p/1291017#M7001</guid>
      <dc:creator>Atlantikwall-Museum</dc:creator>
      <dc:date>2023-05-19T12:59:43Z</dc:date>
    </item>
  </channel>
</rss>

