Why pegman appears disabled in this code
===

I try to customize [this example][1]  modify to work with Custom Panoramas.

But with my code pegman don't appears in the map (even this is disabled).

Whats is my mistake? why in the example appears and not in my code?

My code:

    var latlng = new google.maps.LatLng(-29.905837,-71.250308);

    function initialize() {  
      var myOptions = {
        center: latlng,
        zoom: 18,
        mapTypeId: google.maps.MapTypeId.ROADMAP
      };

      var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);        

      var panoOptions = {
        pano: 'AvFcoAguirre',
        panoProvider: getCustomPanorama,
        zoomControl: false,
        pov: {
          heading: 90,
          pitch: 0,
          zoom: 1
        }
      }
      panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoOptions);
      map.setStreetView(panorama);
    }

    function getCustomPanoramaTileUrl(pano,zoom,tileX,tileY) {
      switch(pano) {
        case 'Balmaceda':  
            return 'http://ejemplo.myhost/public/pano/panov01.jpg';
            break;
      }
    }
    
    function getCustomPanorama(pano,zoom,tileX,tileY) {
       switch(pano) {
        case 'AvFcoAguirre':
          return {
            location: {
              pano: 'Balmaceda',
              description: "Av. Fco de Aguirre",
              latLng: latlng
            },
            tiles: {
              tileSize: new google.maps.Size(13877, 1279),
              worldSize: new google.maps.Size(13877, 1279),
              centerHeading: 190,
              getTileUrl: getCustomPanoramaTileUrl
            }
          };
          break;
      }
    }
    

  [1]: https://google-developers.appspot.com/maps/documentation/javascript/examples/streetview-simple?hl=es-ES