Removing a map layer now actually removes its button from the interface.
Closes #2807.