Is it possible to create a function that would either reveal the entire map or revert the map to its original state?
Any method is acceptable. Whether it's through modifying the source code, using cheat codes, or adding a button to the functionality that opens/closes the map.