code: function(){
        if (!this.options.map){ return; }
  
        if (typeof this.options.map.setCenter == "function"){
          this.map = this.options.map;
          return;
        }
  
        this.map = new google.maps.Map(
          $(this.options.map)[0],
          this.options.mapOptions
        );
  
        // add click event listener on the map
        google.maps.event.addListener(
          this.map,
          'click',
          $.proxy(this.mapClicked, this)
        );
  
        // add dragend even listener on the map
        google.maps.event.addListener(
          this.map,
          'dragend',
          $.proxy(this.mapDragged, this)
        );
  
        // add idle even listener on the map
        google.maps.event.addListener(
          this.map,
          'idle',
          $.proxy(this.mapIdle, this)
        );
  
        google.maps.event.addListener(
          this.map,
          'zoom_changed',
          $.proxy(this.mapZoomed, this)
        );
      }
docs: Initialize the map but only if the option `map` was set. This will create a `map` within the given container using the provided `mapOptions` or link to the existing map instance.