It shall be the function and duty of the planning commission to make such careful and comprehensive surveys and studies of existing conditions and probable future developments and to prepare such plans for physical, social, and economic growth as will best promote the public health, safety, morals, convenience, prosperity, or the general welfare as well as efficiency and economy in the development of the municipality and county. In particular, the planning commission shall have the power and duty to: 1. Prepare a master plan or parts thereof for the development of the municipality and the county. 2. Prepare and recommend for adoption to the city council or county commission respectively a zoning ordinance and map for the municipality or for the county or a specified portion thereof. 3. Prepare and recommend for adoption to the city council or to the county commission respectively regulations for the subdivision of land within the municipality or within the county. 4. Prepare and recommend for adoption to the city council or to the county commission, respectively, a plat or plats or an official map showing the exact location of the boundary lines of existing, proposed, extended, widened or narrowed streets, or public building sites, together with regulations to control the erection of buildings or other structures within such lines.