<?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: LayerToggleButton - layer name and config itemid correspondance in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layertogglebutton-layer-name-and-config-itemid/m-p/1094953#M14617</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i get the answered to my question !&lt;/P&gt;&lt;P&gt;the id referenced in the&amp;nbsp;config_widgets_LayerToggleButton_Widget_[X].json is the id of the layer in the webmap json definition (first line).&lt;/P&gt;&lt;P&gt;so now i must just play with python to get layername and id in the webmap...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;...
{
	"id": "3f9c912ecf2246deafb46a7cc3e7d036",
	"title": "my namelayer",
	"visibility": false,
	"layers": [
		{
			"id": "a1f1ebaff6e04144ac3bd948fbd395c5",
			"showLegend": true,
			"disablePopup": false,
			"title": "namelayer_in_feature_layer",
			"url": "https://mydomain.com/arcgis/rest/services/myfeaturelayer_WFL1/FeatureServer/1",
			"itemId": "e5a4fca21b3b4805a182071d59c7db6f",
			"layerType": "ArcGISFeatureLayer",
			"popupInfo": {
				"popupElements": [
					{
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Sep 2021 15:36:34 GMT</pubDate>
    <dc:creator>Rémy_Gourrat</dc:creator>
    <dc:date>2021-09-02T15:36:34Z</dc:date>
    <item>
      <title>LayerToggleButton - layer name and config itemid correspondance</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layertogglebutton-layer-name-and-config-itemid/m-p/1094548#M14616</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'am very happy to get&amp;nbsp;LayerToggleButton, it's exactly that i want with 3 buttons i can change state of my 50 layers by only one click on the specific button.&lt;/P&gt;&lt;P&gt;Now, i must parameter layers to display, it's fastidiouis and i'm afraid to make some mistakes.&lt;/P&gt;&lt;P&gt;i had parameted in ArcGIS Pro some tasks to display this layers, so after execute the display task, in python i can easely extract the name and the source of layer "...myfeaturelayer/[Layerid]."&lt;/P&gt;&lt;P&gt;But how to convert this datas in something seems to be an itemid to put in my&amp;nbsp;LayerToggleButton/config_widgets_LayerToggleButton_Widget_2.json ?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
  "layerOptions": {
    "17ba151e4b3-layer-61": {
      "display": false
    },
    "17ba151e4b1-layer-60": {
      "display": false
    },
    "17ba151e4b0-layer-59": {
      "display": false
    },
    "17ba151e4ae-layer-58": {
      "display": false
    },
    "7671009ee30449f9be968df5cb1e5614": {
      "display": true
    },
    "5e94a2e374734352ac62ef4c66e94703": {
      "display": true
    }
  },
  "zoomTo": false,
  "isExclusive": true
}&lt;/LI-CODE&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;P&gt;Rémy&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 17:40:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layertogglebutton-layer-name-and-config-itemid/m-p/1094548#M14616</guid>
      <dc:creator>Rémy_Gourrat</dc:creator>
      <dc:date>2021-09-01T17:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: LayerToggleButton - layer name and config itemid correspondance</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layertogglebutton-layer-name-and-config-itemid/m-p/1094953#M14617</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i get the answered to my question !&lt;/P&gt;&lt;P&gt;the id referenced in the&amp;nbsp;config_widgets_LayerToggleButton_Widget_[X].json is the id of the layer in the webmap json definition (first line).&lt;/P&gt;&lt;P&gt;so now i must just play with python to get layername and id in the webmap...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;...
{
	"id": "3f9c912ecf2246deafb46a7cc3e7d036",
	"title": "my namelayer",
	"visibility": false,
	"layers": [
		{
			"id": "a1f1ebaff6e04144ac3bd948fbd395c5",
			"showLegend": true,
			"disablePopup": false,
			"title": "namelayer_in_feature_layer",
			"url": "https://mydomain.com/arcgis/rest/services/myfeaturelayer_WFL1/FeatureServer/1",
			"itemId": "e5a4fca21b3b4805a182071d59c7db6f",
			"layerType": "ArcGISFeatureLayer",
			"popupInfo": {
				"popupElements": [
					{
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 15:36:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/layertogglebutton-layer-name-and-config-itemid/m-p/1094953#M14617</guid>
      <dc:creator>Rémy_Gourrat</dc:creator>
      <dc:date>2021-09-02T15:36:34Z</dc:date>
    </item>
  </channel>
</rss>

