Refactor minimap views

There's many changes at once, it's probably better to review commits separately.