I was not the one who made this script and I forget who did, but I really enjoy using it in my mods. I am posting it here in case others might find it to be useful.
You place it in the Area OnEnter script of and area that you want to hide the Map from Player. Then while Player are in the Area, the Map updates every fDelay seconds. So every time the player takes a step the mini fills back in behind them.