public function render(GroundOverlay $groundOverlay, Map $map)
    {
        $this->jsonBuilder
            ->reset()
            ->setValue('[map]', $map->getJavascriptVariable(), false)
            ->setValues($groundOverlay->getOptions());

        return sprintf(
            '%s = new google.maps.GroundOverlay("%s", %s, %s);'.PHP_EOL,
            $groundOverlay->getJavascriptVariable(),
            $groundOverlay->getUrl(),
            $groundOverlay->getBound()->getJavascriptVariable(),
            $this->jsonBuilder->build()
        );
    }
public function render(GroundOverlay $groundOverlay, Map $map)
    {
        $this->jsonBuilder
            ->reset()
            ->setValue('[map]', $map->getJavascriptVariable(), false)
            ->setValues($groundOverlay->getOptions());

        return sprintf(
            '%s = new google.maps.GroundOverlay("%s", %s, %s);'.PHP_EOL,
            $groundOverlay->getJavascriptVariable(),
            $groundOverlay->getUrl(),
            $groundOverlay->getBound()->getJavascriptVariable(),
            $this->jsonBuilder->build()
        );
    }
public function render ( GroundOverlay $ groundOverlay , Map $ map ) { $ this -> jsonBuilder -> reset ( ) -> setValue ( '[map]' , $ map -> getJavascriptVariable ( ) , false ) -> setValues ( $ groundOverlay -> getOptions ( ) ) ; return sprintf ( '%s = new google.maps.GroundOverlay("%s", %s, %s);' . PHP_EOL , $ groundOverlay -> getJavascriptVariable ( ) , $ groundOverlay -> getUrl ( ) , $ groundOverlay -> getBound ( ) -> getJavascriptVariable ( ) , $ this -> jsonBuilder -> build ( ) ) ; }
Renders a ground overlay.

@param \Ivory\GoogleMap\Overlays\GroundOverlay $groundOverlay The ground overlay.
@param \Ivory\GoogleMap\Map                    $map           The map.

@return string The JS output.
Renders a ground overlay .