[FEATURE] Method to force compact of layers

This method is useful for situations where you might want to have a single button or other method for collapsing the layers - one such situation is actually clicking on content in a layer controller and compacting before displaying the new layer.