I don't think people realize how many restrictions are put on their property--mainly my small towns, and entities. Every
year Busy Bodies(usually retired with no interests), or local politicians looking for something to do; complain, and enact these rediculios laws. They are essentiall eye sore laws, and usually originate from people who should never talk about
aesthetics. You buy a piece of property and really can't
do much to it. I would like to call out my own town, but I
have shared too much here--they could probally harass me in some way?
I would look into fighting whomever told you to remove the solar panel. I thought solar panels were protected by Federal law? In my town, I couldn't put up a car shade for
one day--without risking a ticket. I don't know what country
you are in, but in the United States we have way to many laws. "Oh it sounds good, and doesn't effect me; let's enact
a law prohibiting it."