public function render(Bound $bound)
    {
        if ($bound->hasExtends() || !$bound->hasCoordinates()) {
            return sprintf('%s = new google.maps.LatLngBounds();'.PHP_EOL, $bound->getJavascriptVariable());
        }

        return sprintf(
            '%s = new google.maps.LatLngBounds(%s, %s);'.PHP_EOL,
            $bound->getJavascriptVariable(),
            $bound->getSouthWest()->getJavascriptVariable(),
            $bound->getNorthEast()->getJavascriptVariable()
        );
    }
public function render(Bound $bound)
    {
        if ($bound->hasExtends() || !$bound->hasCoordinates()) {
            return sprintf('%s = new google.maps.LatLngBounds();'.PHP_EOL, $bound->getJavascriptVariable());
        }

        return sprintf(
            '%s = new google.maps.LatLngBounds(%s, %s);'.PHP_EOL,
            $bound->getJavascriptVariable(),
            $bound->getSouthWest()->getJavascriptVariable(),
            $bound->getNorthEast()->getJavascriptVariable()
        );
    }
public function render ( Bound $ bound ) { if ( $ bound -> hasExtends ( ) || ! $ bound -> hasCoordinates ( ) ) { return sprintf ( '%s = new google.maps.LatLngBounds();' . PHP_EOL , $ bound -> getJavascriptVariable ( ) ) ; } return sprintf ( '%s = new google.maps.LatLngBounds(%s, %s);' . PHP_EOL , $ bound -> getJavascriptVariable ( ) , $ bound -> getSouthWest ( ) -> getJavascriptVariable ( ) , $ bound -> getNorthEast ( ) -> getJavascriptVariable ( ) ) ; }
Renders the bound.

@param \Ivory\GoogleMap\Base\Bound $bound The bound.

@return string The JS output.
Renders the bound .