This function transforms the data in the long form so that the transition
from the first map to the second map can be seen in the animation. This function
is like tidyr::pivot_longer
but works for sf objects (error is given
tidyr::pivot_longer
when combining sf
objects).