/** * Renders the map javascript rectangles * * @param Ivory\GoogleMapBundle\Model\Map $map * @return string HTML output */ public function renderRectangles(Map $map) { $html = array(); foreach ($map->getRectangles() as $rectangle) { $html[] = $this->rectangleHelper->render($rectangle, $map); } return implode('', $html); }