Coronal holes as indicators of large-scale magnetic fields in the corona