Hi,
I'am very happy to get 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.
Now, i must parameter layers to display, it's fastidiouis and i'm afraid to make some mistakes.
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]."
But how to convert this datas in something seems to be an itemid to put in my LayerToggleButton/config_widgets_LayerToggleButton_Widget_2.json ?
{
"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
}
thanks for your help
Rémy