public function render(InfoWindow $infoWindow, $renderPosition = true)
    {
        $this->doRender($infoWindow, $renderPosition);

        return sprintf(
            '%s = new google.maps.InfoWindow(%s);'.PHP_EOL,
            $infoWindow->getJavascriptVariable(),
            $this->jsonBuilder->build()
        );
    }
public function render(InfoWindow $infoWindow, $renderPosition = true)
    {
        $this->doRender($infoWindow, $renderPosition);

        return sprintf(
            '%s = new google.maps.InfoWindow(%s);'.PHP_EOL,
            $infoWindow->getJavascriptVariable(),
            $this->jsonBuilder->build()
        );
    }
public function render ( InfoWindow $ infoWindow , $ renderPosition = true ) { $ this -> doRender ( $ infoWindow , $ renderPosition ) ; return sprintf ( '%s = new google.maps.InfoWindow(%s);' . PHP_EOL , $ infoWindow -> getJavascriptVariable ( ) , $ this -> jsonBuilder -> build ( ) ) ; }
Renders an info window.

@param \Ivory\GoogleMap\Overlays\InfoWindow $infoWindow     The info window.
@param boolean                              $renderPosition TRUE if the position is rendered else FALSE.

@return string The JS output.
Renders an info window .