Q:

Google Map API Street View controls?

I couldn't figure out how to change/hide Street View controls in scenario where there's a map by default and you drag "little guy" to road.
This is the piece of code about my options:
    function initMap() {

        var mapOptions = { 
            center: new google.maps.LatLng( <?php echo $latitude . ',' . $longitude; ?>),
            zoom: 12,
            disableDefaultUI: true,
            backgroundColor: 'white',
            streetViewControl: true
            };
// I have markers & other stuff in here, it's properly closed function!

I found reference for Street View controls only when it's Street View by default, here's a code example from Google Developers:
function initPano() {
  // Note: constructed panorama objects have visible: true
  // set by default.
  var panorama = new google.maps.StreetViewPanorama(
      document.getElementById('map'), {
        position: {lat: 42.345573, lng: -71.098326},
        addressControlOptions: {
          position: google.maps.ControlPosition.BOTTOM_CENTER
        },
        linksControl: false,
        panControl: false,
        zoomControlOptions: {
          style: google.maps.ZoomControlStyle.SMALL
        },
        enableCloseButton: false
  });
}

How to add Street View UI options if default view is map and you can drag Street View "guy" to map?

A:

Have a look at this answer to see if it helps. I think you need to listen for the streetview becoming visible and then hide the controls using streetViewControl = false etc.
Detecting Google Maps streetview mode

