For the purpose of promoting the health, safety, morals, convenience, order prosperity, or general welfare of the municipality or county, the city council and the county commission for the municipality and county, respectively, are hereby empowered, in accordance with the conditions and the procedure specified in this act, to regulate the location, height, bulk, number of stories and size of buildings and other structures, the percentage of lot which may be occupied, the sizes of yards, courts, the density and distribution of population, and the uses of buildings, structures, and land for trade, industry, residence, recreation, conservation, water supply, sanitation, protection against floods, public activities, and other purposes.