Over in the Non-Ace2 mods thread, someone linked to
MiniMapButtonBag (link). It's not exactly what you're asking for, but IMHO it's even better. Basically it collapses all your minimap buttons (which for me is a boatload) into one. When you click that button, it expands to show them all. Really elegant solution

. You can also exempt certain buttons if you want them easily accessible.