Provided herein are 8-methyl-8-azabicyclo[3.2.1]octan-3-yl and pyridin-4-ylmethanyl ester and amide compounds and compositions. Also provided herein are methods of preventing or delaying the onset of myopia in a subject in need thereof, comprising administering the compounds or compositions provided herein to the subject. Also provided herein are methods of reducing or preventing the progression of myopia in a subject in need thereof, comprising administering the compounds or compositions provided herein to the subject.