The governing bodies of the county and city are authorized to regulate in their respective jurisdictions 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, and other open spaces, the density and distribution of population, the uses of buildings and structures for trade, industry, commerce, residence, recreation, public activities or other purposes, and the uses of land for trade, industry, commerce, residence, recreation, agriculture, forestry, soil conservation, water-supply conservation, or other purposes. By means of a map various zones or districts may be established and different regulations prescribed for each zone or district, but the regulations shall be uniform for each class or kind of building or use throughout any zone or district. The ordinance establishing these zones, including both map and text must be based on the master plan. However, it may be adopted separately and at different times for various communities in the county.