/**
  * Renders the map javascript polygons
  *
  * @param Ivory\GoogleMapBundle\Model\Map $map
  * @return string HTML output
  */
 public function renderPolygons(Map $map)
 {
     $html = array();
     foreach ($map->getPolygons() as $polygon) {
         $html[] = $this->polygonHelper->render($polygon, $map);
     }
     return implode('', $html);
 }