Neat Minimap
Neat Minimap let's you have a clean minimap that auto hides all minimap buttons when you're moused away from the map and shows them back again when you mouse over
It (aims to) work for all buttons and not just the ones from addons using LibDbIcon
It also works with other minimaps square or otherwise, like ElvUI's
You can configure which part of the Blizzard standard buttons to keep always visible or not (like the clock) but it always keep the new mail indicator for instance.