/** * Renders the map javascript info window * * @param Ivory\GoogleMapBundle\Model\Map $map * @return string HTML output */ public function renderInfoWindows(Map $map) { $html = array(); foreach ($map->getInfoWindows() as $infoWindow) { $html[] = $this->infoWindowHelper->render($infoWindow); if ($infoWindow->isOpen()) { $html[] = $this->infoWindowHelper->renderOpen($infoWindow, $map); } } return implode('', $html); }