public function setTypeControlOpt($typeControl = 1)
{
$output = '';
if ($typeControl == 0) {
$output = 'mapTypeControl: false';
} else {
switch ($typeControl) {
case 2:
$type = 'HORIZONTAL_BAR';
break;
case 3:
$type = 'DROPDOWN_MENU';
break;
default:
case 1:
$type = 'DEFAULT';
break;
}
$output = 'mapTypeControl: true,' . "\n" . 'mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.' . $type . '}';
}
return $output;
}