The legislative body of the local agency or assessment district shall not lease the property or use it except for the purposes for which it is acquired unless such a petition is filed with it. It may lease or use the property only according to the terms of the petition.