The corporate authorities of each municipality may require the keeping and use of proper weights and measures by vendors.