An array of JLayerSetLayerGroupsExpansionParams
Error if any layer group is not found for any group id, or if any group found is not a layer group but a layer
// Expand the layer group id -4, collapse group id -5
JMap.Layer.setLayerGroupsExpansion([{layerGroupId: -4, open: true}, {layerGroupId: -5, open: false}])
JMap.Layer.setLayerGroupsExpansion
Set the group expansion state of multiple layer groups.