Spatial distributions of ion pitch angle anisotropy in the near‐Earth magnetosphere and tail plasma sheet