public function renderJsContainerEventManager(Map $map)
    {
        $output = array();

        foreach ($map->getEventManager()->getDomEvents() as $domEvent) {
            $output[] = sprintf(
                '%s.event_manager.dom_events.%s = %s',
                $this->getJsContainerName($map),
                $domEvent->getJavascriptVariable(),
                $this->eventManagerHelper->renderDomEvent($domEvent)
            );
        }

        foreach ($map->getEventManager()->getDomEventsOnce() as $domEventOnce) {
            $output[] = sprintf(
                '%s.event_manager.dom_events_once.%s = %s',
                $this->getJsContainerName($map),
                $domEventOnce->getJavascriptVariable(),
                $this->eventManagerHelper->renderDomEventOnce($domEventOnce)
            );
        }

        foreach ($map->getEventManager()->getEvents() as $event) {
            $output[] = sprintf(
                '%s.event_manager.events.%s = %s',
                $this->getJsContainerName($map),
                $event->getJavascriptVariable(),
                $this->eventManagerHelper->renderEvent($event)
            );
        }

        foreach ($map->getEventManager()->getEventsOnce() as $eventOnce) {
            $output[] = sprintf(
                '%s.event_manager.events_once.%s = %s',
                $this->getJsContainerName($map),
                $eventOnce->getJavascriptVariable(),
                $this->eventManagerHelper->renderEventOnce($eventOnce)
            );
        }

        return implode('', $output);
    }
public function renderJsContainerEventManager(Map $map)
    {
        $output = array();

        foreach ($map->getEventManager()->getDomEvents() as $domEvent) {
            $output[] = sprintf(
                '%s.event_manager.dom_events.%s = %s',
                $this->getJsContainerName($map),
                $domEvent->getJavascriptVariable(),
                $this->eventManagerHelper->renderDomEvent($domEvent)
            );
        }

        foreach ($map->getEventManager()->getDomEventsOnce() as $domEventOnce) {
            $output[] = sprintf(
                '%s.event_manager.dom_events_once.%s = %s',
                $this->getJsContainerName($map),
                $domEventOnce->getJavascriptVariable(),
                $this->eventManagerHelper->renderDomEventOnce($domEventOnce)
            );
        }

        foreach ($map->getEventManager()->getEvents() as $event) {
            $output[] = sprintf(
                '%s.event_manager.events.%s = %s',
                $this->getJsContainerName($map),
                $event->getJavascriptVariable(),
                $this->eventManagerHelper->renderEvent($event)
            );
        }

        foreach ($map->getEventManager()->getEventsOnce() as $eventOnce) {
            $output[] = sprintf(
                '%s.event_manager.events_once.%s = %s',
                $this->getJsContainerName($map),
                $eventOnce->getJavascriptVariable(),
                $this->eventManagerHelper->renderEventOnce($eventOnce)
            );
        }

        return implode('', $output);
    }
public function renderJsContainerEventManager ( Map $ map ) { $ output = array ( ) ; foreach ( $ map -> getEventManager ( ) -> getDomEvents ( ) as $ domEvent ) { $ output [ ] = sprintf ( '%s.event_manager.dom_events.%s = %s' , $ this -> getJsContainerName ( $ map ) , $ domEvent -> getJavascriptVariable ( ) , $ this -> eventManagerHelper -> renderDomEvent ( $ domEvent ) ) ; } foreach ( $ map -> getEventManager ( ) -> getDomEventsOnce ( ) as $ domEventOnce ) { $ output [ ] = sprintf ( '%s.event_manager.dom_events_once.%s = %s' , $ this -> getJsContainerName ( $ map ) , $ domEventOnce -> getJavascriptVariable ( ) , $ this -> eventManagerHelper -> renderDomEventOnce ( $ domEventOnce ) ) ; } foreach ( $ map -> getEventManager ( ) -> getEvents ( ) as $ event ) { $ output [ ] = sprintf ( '%s.event_manager.events.%s = %s' , $ this -> getJsContainerName ( $ map ) , $ event -> getJavascriptVariable ( ) , $ this -> eventManagerHelper -> renderEvent ( $ event ) ) ; } foreach ( $ map -> getEventManager ( ) -> getEventsOnce ( ) as $ eventOnce ) { $ output [ ] = sprintf ( '%s.event_manager.events_once.%s = %s' , $ this -> getJsContainerName ( $ map ) , $ eventOnce -> getJavascriptVariable ( ) , $ this -> eventManagerHelper -> renderEventOnce ( $ eventOnce ) ) ; } return implode ( '' , $ output ) ; }
Renders the javascript container event manager.

@param \Ivory\GoogleMap\Map $map The map.

@return string The JS output.
Renders the javascript container event manager .