The solar covered parking lots near me are great because they also serve as cover for your car when it’s hot and sunny.

It’s not the most cost effective way to install solar, though. A tall structure designed to put the panels high up in the air and leave a lot of space for cars is a lot more expensive than normal rooftop solar or even field setups. This is basically a way to force some of the cost of clean energy as a tax on parking lots. Which may not be a bad thing for dense cities where parking lots have their own externalities on the limited available land.

A better version for shade and city beautification is to force trees around/within the parking lot.
Trees can cause a lot of trouble if you don't give them enough space to grow. "Enough space" depends on the kind of the tree, but it's typically similar to a parking space. You can mandate trees, but then you'll get less parking.