Given the rapid development of charging-while-driving technology, we envision that charging lanes for electric vehicles can be deployed in regional or even urban road networks in the future and thus attempt to optimize their deployment in this paper. We first develop a new user equilibrium model to describe the equilibrium flow distribution across a road network where charging lanes are deployed. Drivers of electric vehicles, when traveling between their origins and destinations, are assumed to select routes and decide battery recharging plans to minimize their trip times while ensuring to complete their trips without running out of charge. The battery recharging plan will dictate which charging lane to use, how long to charge and at what speed to operate an electric vehicle. The speed will affect the amount of energy recharged as well as travel time. With the established user equilibrium conditions, we further formulate the deployment of charging lanes as a mathematical program with complementarity constraints. Both the network equilibrium and design models are solved by effective solution algorithms and demonstrated with numerical examples.