The board of supervisors may construct public roads along the side of and on the right of way of drainage canals or on any levees of any drainage districts of their respective counties, and for this purpose may use the dumps of earth taken from any canal or ditch, either as a road bed or otherwise, provided that no such road shall be constructed without the consent of the commissioners of the drainage district affected, and paying all damages to landowner. Before establishing and constructing said public road, a written resolution of the commissioners of the drainage district agreeing to the establishing of said road shall be presented to the board of supervisors, and said resolution shall be and constitute a part of the order of the board of supervisors establishing the public road. Said road shall not be so constructed as to interfere with the drainage of lands in the drainage district, and the same shall not be so constructed as to hinder or impede the drainage canals for the use and purpose for which they were constructed.