The board of supervisors of any county, and the governing authorities of any city, town or village, through which any telegraph or telephone line may pass, shall have power to regulate, within their respective limits, the manner in which the same shall be constructed and maintained, with a view to the safe and convenient use of the public highways and streets. If the proprietors of any telegraph or telephone line refuse or omit to comply with such regulations, the board of supervisors, or the authorities of the city, town or village, may cause such line to be abated within its jurisdiction as a nuisance.