public function renderEvent(Event $event)
    {
        return sprintf(
            '%s = google.maps.event.addListener(%s, "%s", %s);'.PHP_EOL,
            $event->getJavascriptVariable(),
            $event->getInstance(),
            $event->getEventName(),
            $event->getHandle()
        );
    }
public function renderEvent(Event $event)
    {
        return sprintf(
            '%s = google.maps.event.addListener(%s, "%s", %s);'.PHP_EOL,
            $event->getJavascriptVariable(),
            $event->getInstance(),
            $event->getEventName(),
            $event->getHandle()
        );
    }
public function renderEvent ( Event $ event ) { return sprintf ( '%s = google.maps.event.addListener(%s, "%s", %s);' . PHP_EOL , $ event -> getJavascriptVariable ( ) , $ event -> getInstance ( ) , $ event -> getEventName ( ) , $ event -> getHandle ( ) ) ; }
Renders an event.

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

@return string The JS output.
Renders an event .