How to Expand/Collapse a single Group of layers

Hello and…happy new year !

Do you have any suggestions on how to expand or collapse a single group of layers ?

Thanks
Daniele

Batch play descriptor for collapsing would be:

    {
        "_obj": "set",
        "_target": {
            "_ref": [
                {"_property": "layerSectionExpanded"},
                {"_ref": "layer", "_id": id}
            ],
        },
        "to": false
    }

id is your layers group ID
Change to to true to expand

1 Like

Thanks a lot @Karmalakas !