Observations of the Sun's magnetic field during the recent solar maximum