We present a major revision of the widely used
Jannson-Farrar 2012 model of the coherent magnetic field of the
Galaxy. We fit to new full-sky data of extragalactic rotation
measures and the final polarized intensity maps from WMAP and
Planck. Our analysis employs the latest models for the thermal
electron density tuned to the dispersion measures of Galactic
pulsars and a suite of state-of-the-art cosmic-ray electrons models,
needed to predict the rotation measures and synchrotron emission
from the Galaxy, respectively. We have developed new
divergence-free parametric models of the global structure of the
magnetic field, with parameters tuned to the data. We will give a
brief overview over the features of the new models and discuss the
effect of our new suite of models on the deflection of
ultrahigh-energy cosmic rays.