I m not really understand what you are saying.
The possible solutions is to place one physical fields to toggle the view for inline (child) , A to B, or B to A.
For example on your parent table, you place toggle column, as Enum. Table View or Map View.
Then on the parent table, you place two LIST type Virtual column, one with table view, else map view.
For those two list type views to be show or hidden to be controlled by the above-mentioned the toggle column to display or not. Just easy showif constrain.
The issue will be the toggle field will be shared across all the users though.