Location: Illinois
Throwaway account - can provide more context where needed
Several years ago I planted a tree (unknowingly) on my property line that borders a city owned easement. I wanted to build a fence around the yard and the tree. When I called city hall the head of zoning told me, via phone call, "Here's what you do. Draw on the application that the fence is going on your property line and I will issue a permit. Build the fence over your line. I will pass you on inspection. I won't measure it from setback line and you can go onto the easement." So that's what I did and that's what happened. The easement contains an access road to the neighbor's house and then abruptly ends. The other side is a park. Nothing encroaches on the neighbor's lot or access. It's maybe 20 feet from my line to access road. Fence is ~10 feet from the access road but ~10 feet over my line.
Fast forward to now and that zoning head has retired. The new head says I need to move the fence. Per new director, while the previous director may have been doing me a solid, the permit application says the fence will be on my property and I did that at my own risk. Cost to move the fence is roughly the same as cost to install it; ~$5k.
I have explored buying the easement or a portion of it and been told no. At this point I am wondering what are my odds if i just say "Take me to court." I'm 50/50 on a judge saying you sought advice from city hall, they gave it, you followed it, and now they changed their mind, too bad for city hall.
TL:DR - City wants me to move my fence from where they said I could put it; what happens if I say screw you?