I have greatly simplified the code, but the issue remains.
I have a geoJSON map with a feature for each county. I want to label the counties with the county name, whi