protected function renderMapControls(Map $map)
    {
        $controlNames = array(
            'MapTypeControl',
            'OverviewMapControl',
            'PanControl',
            'RotateControl',
            'ScaleControl',
            'StreetViewControl',
            'ZoomControl',
        );

        foreach ($controlNames as $controlName) {
            $controlHelper = lcfirst($controlName).'Helper';
            $this->renderMapControl($map, $controlName, $this->$controlHelper);
        }
    }
protected function renderMapControls(Map $map)
    {
        $controlNames = array(
            'MapTypeControl',
            'OverviewMapControl',
            'PanControl',
            'RotateControl',
            'ScaleControl',
            'StreetViewControl',
            'ZoomControl',
        );

        foreach ($controlNames as $controlName) {
            $controlHelper = lcfirst($controlName).'Helper';
            $this->renderMapControl($map, $controlName, $this->$controlHelper);
        }
    }
protected function renderMapControls ( Map $ map ) { $ controlNames = array ( 'MapTypeControl' , 'OverviewMapControl' , 'PanControl' , 'RotateControl' , 'ScaleControl' , 'StreetViewControl' , 'ZoomControl' , ) ; foreach ( $ controlNames as $ controlName ) { $ controlHelper = lcfirst ( $ controlName ) . 'Helper' ; $ this -> renderMapControl ( $ map , $ controlName , $ this -> $ controlHelper ) ; } }
Renders the map controls in the json builder.

@param \Ivory\GoogleMap\Map $map The map.
Renders the map controls in the json builder .