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

        foreach ($map->getPolygons() as $polygon) {
            $output[] = sprintf(
                '%s.polygons.%s = %s',
                $this->getJsContainerName($map),
                $polygon->getJavascriptVariable(),
                $this->polygonHelper->render($polygon, $map)
            );
        }

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

        foreach ($map->getPolygons() as $polygon) {
            $output[] = sprintf(
                '%s.polygons.%s = %s',
                $this->getJsContainerName($map),
                $polygon->getJavascriptVariable(),
                $this->polygonHelper->render($polygon, $map)
            );
        }

        return implode('', $output);
    }
public function renderJsContainerPolygons ( Map $ map ) { $ output = array ( ) ; foreach ( $ map -> getPolygons ( ) as $ polygon ) { $ output [ ] = sprintf ( '%s.polygons.%s = %s' , $ this -> getJsContainerName ( $ map ) , $ polygon -> getJavascriptVariable ( ) , $ this -> polygonHelper -> render ( $ polygon , $ map ) ) ; } return implode ( '' , $ output ) ; }
Renders the javascript container polygons.

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

@return string The JS output.
Renders the javascript container polygons .