public function render(Circle $circle, Map $map)
    {
        $this->jsonBuilder
            ->reset()
            ->setValue('[map]', $map->getJavascriptVariable(), false)
            ->setValue('[center]', $circle->getCenter()->getJavascriptVariable(), false)
            ->setValue('[radius]', $circle->getRadius())
            ->setValues($circle->getOptions());

        return sprintf(
            '%s = new google.maps.Circle(%s);'.PHP_EOL,
            $circle->getJavascriptVariable(),
            $this->jsonBuilder->build()
        );
    }
public function render(Circle $circle, Map $map)
    {
        $this->jsonBuilder
            ->reset()
            ->setValue('[map]', $map->getJavascriptVariable(), false)
            ->setValue('[center]', $circle->getCenter()->getJavascriptVariable(), false)
            ->setValue('[radius]', $circle->getRadius())
            ->setValues($circle->getOptions());

        return sprintf(
            '%s = new google.maps.Circle(%s);'.PHP_EOL,
            $circle->getJavascriptVariable(),
            $this->jsonBuilder->build()
        );
    }
public function render ( Circle $ circle , Map $ map ) { $ this -> jsonBuilder -> reset ( ) -> setValue ( '[map]' , $ map -> getJavascriptVariable ( ) , false ) -> setValue ( '[center]' , $ circle -> getCenter ( ) -> getJavascriptVariable ( ) , false ) -> setValue ( '[radius]' , $ circle -> getRadius ( ) ) -> setValues ( $ circle -> getOptions ( ) ) ; return sprintf ( '%s = new google.maps.Circle(%s);' . PHP_EOL , $ circle -> getJavascriptVariable ( ) , $ this -> jsonBuilder -> build ( ) ) ; }
Renders a circle.

@param \Ivory\GoogleMap\Overlays\Circle $circle The circle.
@param \Ivory\GoogleMap\Map             $map    The map.

@return string The JS output.
Renders a circle .