The corporate authorities of each municipality may regulate the use of harbors, towing of vessels, and the opening and passing of bridges.