Back to PhocaGalleryRenderMap class

Method setNavigationControlOpt

public
setNavigationControlOpt
(mixed $navControl = 1)

Method setNavigationControlOpt - Source code

public function setNavigationControlOpt($navControl = 1)
{
    $output = '';
    if ($navControl == 0) {
        $output = 'navigationControl: false';
    } else {
        switch ($navControl) {
            case 2:
                $type = 'SMALL';
                break;
            case 3:
                $type = 'ZOOM_PAN';
                break;
            case 4:
                $type = 'ANDROID';
                break;
            default:
            case 1:
                $type = 'DEFAULT';
                break;
        }
        $output = 'navigationControl: true,' . "\n" . 'navigationControlOptions: {style: google.maps.NavigationControlStyle.' . $type . '}';
    }
    return $output;
}