src/Helper/Events/EventManagerHelper.php
public function renderEventOnce(Event $eventOnce)
    {
        return sprintf(
            '%s = google.maps.event.addListenerOnce(%s, "%s", %s);'.PHP_EOL,
            $eventOnce->getJavascriptVariable(),
            $eventOnce->getInstance(),
            $eventOnce->getEventName(),
            $eventOnce->getHandle()
        );
    }
public function renderEventOnce(Event $eventOnce)
    {
        return sprintf(
            '%s = google.maps.event.addListenerOnce(%s, "%s", %s);'.PHP_EOL,
            $eventOnce->getJavascriptVariable(),
            $eventOnce->getInstance(),
            $eventOnce->getEventName(),
            $eventOnce->getHandle()
        );
    }
Renders an event once.

@param \Ivory\GoogleMap\Events\Event $eventOnce The event once.

@return string The JS output.