Another refactor (mentioned somewhere within this forever-ongoing PR) is to refactor this minimap stuff.  It can be part of that.