For the purpose of giving effect to the official map and zoning ordinances the governing body of the city or county may provide in these ordinances, or amendments thereto, for the issuance of building permits by specifying the conditions whereby permits shall be issued or withheld, and designating a building officer or inspector for this purpose. The governing body may provide that no permit shall be issued for (1) any building or structure or part thereof on any land located within the lines of any street, road, park, playground, school site or other public ground shown on the official map; (2) any building on property to which there is not access by means of a street or road on the official map; or (3) any building not in accordance with the regulations prescribed for the zone or district in which the proposed building would be built. Any such ordinance shall provide for a board of appeals as specified herein. Excepting in streets existing and established by law as public streets at the date of establishment of the official map, no public water facilities, sewer, or other public utility or improvement shall be constructed after said date in any street until such street is duly placed on the official map.