map/scripts/googleio.js
/**
 * The Google IO Mall Map
 * @constructor
 */
The Google IO Mall Map
@constructor
The Google IO Mall Map @constructor
function GoogleIo() {
  this.center_ = new google.maps.LatLng(37.78313383211993,
      -122.40394949913025);
  this.mapDiv_ = document.getElementById(this.MAP_ID);
  this.map_ = new google.maps.Map(this.mapDiv_, {
    zoom: 18,
    center: this.center_,
    navigationControl: true,
    mapTypeControl: false,
    scaleControl: true,
    mapTypeId: google.maps.MapTypeId.HYBRID
  });
  this.infoWindow_ = new google.maps.InfoWindow({
    maxWidth: 330
  });
  this.isMobile_();
  var that = this;
  google.maps.event.addListenerOnce(this.map_, 'tilesloaded', function() {
    that.enableToolbox_();
    if (that.hasMapContainer_()) {
      MAP_CONTAINER.onMapReady();
    }
  });
  this.addLevelMarkers_();
  if (!document.location.hash) {
    this.showLevel(this.LEVELS_[0], true);
  }
  this.checkLocalStorage_();
  this.loadMallMapContent_();
  if (!this.hasMapContainer_()) {
    this.initLocationHashWatcher_();
  }
}
function GoogleIo ( ) { this . center_ = new google . maps . LatLng ( 37.78313383211993 , - 122.40394949913025 ) ; this . mapDiv_ = document . getElementById ( this . MAP_ID ) ; this . map_ = new google . maps . Map ( this . mapDiv_ , { zoom : 18 , center : this . center_ , navigationControl : true , mapTypeControl : false , scaleControl : true , mapTypeId : google . maps . MapTypeId . HYBRID } ) ; this . infoWindow_ = new google . maps . InfoWindow ( { maxWidth : 330 } ) ; this . isMobile_ ( ) ; var that = this ; google . maps . event . addListenerOnce ( this . map_ , 'tilesloaded' , function ( ) { that . enableToolbox_ ( ) ; if ( that . hasMapContainer_ ( ) ) { MAP_CONTAINER . onMapReady ( ) ; } } ) ; this . addLevelMarkers_ ( ) ; if ( ! document . location . hash ) { this . showLevel ( this . LEVELS_ [ 0 ] , true ) ; } this . checkLocalStorage_ ( ) ; this . loadMallMapContent_ ( ) ; if ( ! this . hasMapContainer_ ( ) ) { this . initLocationHashWatcher_ ( ) ; } }
The Google IO Mall Map
 @constructor
The Google IO Mall Map @constructor