public function renderOpen(InfoWindow $infoWindow, Map $map, Marker $marker = null)
    {
        if ($marker !== null) {
            return sprintf(
                '%s.open(%s, %s);'.PHP_EOL,
                $infoWindow->getJavascriptVariable(),
                $map->getJavascriptVariable(),
                $marker->getJavascriptVariable()
            );
        }

        return sprintf('%s.open(%s);'.PHP_EOL, $infoWindow->getJavascriptVariable(), $map->getJavascriptVariable());
    }
public function renderOpen(InfoWindow $infoWindow, Map $map, Marker $marker = null)
    {
        if ($marker !== null) {
            return sprintf(
                '%s.open(%s, %s);'.PHP_EOL,
                $infoWindow->getJavascriptVariable(),
                $map->getJavascriptVariable(),
                $marker->getJavascriptVariable()
            );
        }

        return sprintf('%s.open(%s);'.PHP_EOL, $infoWindow->getJavascriptVariable(), $map->getJavascriptVariable());
    }
public function renderOpen ( InfoWindow $ infoWindow , Map $ map , Marker $ marker = null ) { if ( $ marker !== null ) { return sprintf ( '%s.open(%s, %s);' . PHP_EOL , $ infoWindow -> getJavascriptVariable ( ) , $ map -> getJavascriptVariable ( ) , $ marker -> getJavascriptVariable ( ) ) ; } return sprintf ( '%s.open(%s);' . PHP_EOL , $ infoWindow -> getJavascriptVariable ( ) , $ map -> getJavascriptVariable ( ) ) ; }
Renders the info window open flag.

@param \Ivory\GoogleMap\Overlays\InfoWindow $infoWindow The info window.
@param \Ivory\GoogleMap\Map                 $map        The map.
@param \Ivory\GoogleMap\Overlays\Marker     $marker     The marker.

@return string The JS output.
Renders the info window open flag .