Solar panels on the roof will only marginally increase the range by a small amount. It has been done to the Toyota Prius as an optional extra to extend it's electric mode driving range. Given the typical car roof is only (approximately) 1.5 square meters in area, it's not going to provide much power to make a major increase in driving range.
It's more practical to have a recharging station at the car's destinations if you want to increase the car's maximum driving range. Even with that, it will take many HOURS to have a significant recharge if the battery is low on power. If you work at the destination, then spending the next 8 hours at the location is fine but if you are traveling across the city and the charge gets low, you will find yourself stranded until the battery gets a significant recharge.
Fifth Gear on electric cars...
‪Fifth Gear S17E03 Electric Car‬‏ - YouTube