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

        $mapInfoWindows = $map->getInfoWindows();
        $markerInfoWindows = $this->computeMarkerInfoWindows($map);

        foreach ($mapInfoWindows as $mapInfoWindow) {
            $output[] = sprintf(
                '%s.info_windows.%s = %s',
                $this->getJsContainerName($map),
                $mapInfoWindow->getJavascriptVariable(),
                $this->infoWindowHelper->render($mapInfoWindow)
            );
        }

        foreach ($markerInfoWindows as $markerInfoWindow) {
            $output[] = sprintf(
                '%s.info_windows.%s = %s',
                $this->getJsContainerName($map),
                $markerInfoWindow->getJavascriptVariable(),
                $this->infoWindowHelper->render($markerInfoWindow, false)
            );
        }

        foreach (array_merge($mapInfoWindows, $markerInfoWindows) as $infoWindow) {
            if ($infoWindow->isAutoClose()) {
                $output[] = sprintf(
                    '%s.closable_info_windows.%s = %s;'.PHP_EOL,
                    $this->getJsContainerName($map),
                    $infoWindow->getJavascriptVariable(),
                    $infoWindow->getJavascriptVariable()
                );
            }
        }

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

        $mapInfoWindows = $map->getInfoWindows();
        $markerInfoWindows = $this->computeMarkerInfoWindows($map);

        foreach ($mapInfoWindows as $mapInfoWindow) {
            $output[] = sprintf(
                '%s.info_windows.%s = %s',
                $this->getJsContainerName($map),
                $mapInfoWindow->getJavascriptVariable(),
                $this->infoWindowHelper->render($mapInfoWindow)
            );
        }

        foreach ($markerInfoWindows as $markerInfoWindow) {
            $output[] = sprintf(
                '%s.info_windows.%s = %s',
                $this->getJsContainerName($map),
                $markerInfoWindow->getJavascriptVariable(),
                $this->infoWindowHelper->render($markerInfoWindow, false)
            );
        }

        foreach (array_merge($mapInfoWindows, $markerInfoWindows) as $infoWindow) {
            if ($infoWindow->isAutoClose()) {
                $output[] = sprintf(
                    '%s.closable_info_windows.%s = %s;'.PHP_EOL,
                    $this->getJsContainerName($map),
                    $infoWindow->getJavascriptVariable(),
                    $infoWindow->getJavascriptVariable()
                );
            }
        }

        return implode('', $output);
    }
public function renderJsContainerInfoWindows ( Map $ map ) { $ output = array ( ) ; $ mapInfoWindows = $ map -> getInfoWindows ( ) ; $ markerInfoWindows = $ this -> computeMarkerInfoWindows ( $ map ) ; foreach ( $ mapInfoWindows as $ mapInfoWindow ) { $ output [ ] = sprintf ( '%s.info_windows.%s = %s' , $ this -> getJsContainerName ( $ map ) , $ mapInfoWindow -> getJavascriptVariable ( ) , $ this -> infoWindowHelper -> render ( $ mapInfoWindow ) ) ; } foreach ( $ markerInfoWindows as $ markerInfoWindow ) { $ output [ ] = sprintf ( '%s.info_windows.%s = %s' , $ this -> getJsContainerName ( $ map ) , $ markerInfoWindow -> getJavascriptVariable ( ) , $ this -> infoWindowHelper -> render ( $ markerInfoWindow , false ) ) ; } foreach ( array_merge ( $ mapInfoWindows , $ markerInfoWindows ) as $ infoWindow ) { if ( $ infoWindow -> isAutoClose ( ) ) { $ output [ ] = sprintf ( '%s.closable_info_windows.%s = %s;' . PHP_EOL , $ this -> getJsContainerName ( $ map ) , $ infoWindow -> getJavascriptVariable ( ) , $ infoWindow -> getJavascriptVariable ( ) ) ; } } return implode ( '' , $ output ) ; }
Renders the javascript container info windows.

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

@return string The JS output.
Renders the javascript container info windows .