No law shall be passed granting the right to construct and operate a street railroad, telegraph, telephone or electric light plant within any city or incorporated town, without the consent of the local authorities who have control of the street or highway proposed to be occupied for such purposes.