We present a method of teaching the basics of celestial navigation, using the Javascript programming interface to Google Maps. This offers the teacher of celestial navigation many highly visual and flexible investigative and presentation options, all using the familiar Google Map system. In this paper, we discuss the programming route to Google Maps, and demonstrate an exercise of correcting the assumed position of a hypothetical lost ship, using sights of the Sun, suitable for classroom use. We also present an analysis of the relationship between the proximity of the assumed to the actual position of the ship, and the outcome of a sight-reduction procedure.