src/Helper/Events/EventManagerHelper.php
public function renderDomEvent(Event $domEvent)
    {
        return sprintf(
            '%s = google.maps.event.addDomListener(%s, "%s", %s, %s);'.PHP_EOL,
            $domEvent->getJavascriptVariable(),
            $domEvent->getInstance(),
            $domEvent->getEventName(),
            $domEvent->getHandle(),
            json_encode($domEvent->isCapture())
        );
    }
public function renderDomEvent(Event $domEvent)
    {
        return sprintf(
            '%s = google.maps.event.addDomListener(%s, "%s", %s, %s);'.PHP_EOL,
            $domEvent->getJavascriptVariable(),
            $domEvent->getInstance(),
            $domEvent->getEventName(),
            $domEvent->getHandle(),
            json_encode($domEvent->isCapture())
        );
    }
Renders a dom event.

@param \Ivory\GoogleMap\Events\Event $domEvent The dom event.

@return string The JS output.