Center map when pressing visible Map tab, better centering behavior for detail map