Mayer observed the Transit of Venus across the Sun on 6 June 1761 from a temporary Observatory built of wood by Karl Theodor in the Orangery in the park of Schwetzingen Castle.
A few years later, Mayer travelled for a year to St. Petersburg and observed there, another Transit of Venus on 3 June 1769.