Where the board of supervisors of any county uses the right of way or ditch banks or any levee of any drainage district created in this state, it may pay to the treasurer of the respective drainage districts the value of any right of way taken for road purposes, as done with private individuals.