Updating main branch

Creating a pull request for commenting ability
could you combine this and hideAllGeoJsonData into one function that takes a boolean to indicate what to set the visibility to?