once

once is like on, but the handler removes itself after handling the first event.
It silently uses addListenerOnce or addDomListenerOnce depending on the object type (see google.maps.event documentation).

Example