initMap() {
    window.initMap = () => {
      this.fetchRestaurantFromURL((error, restaurant) => {
        if (error) { // Got an error!
          console.error(error);
        } else {
          map = new google.maps.Map(document.getElementById('map'), {
            zoom: 16,
            center: restaurant.latlng,
            scrollwheel: false
          });
          this.fillBreadcrumb();
          DBHelper.mapMarkerForRestaurant(this.restaurant, map);
        }
      });
    }
  }
/**
   * Initialize Google map, called from HTML.
   */
Initialize Google map, called from HTML.
Initialize Google map called from HTML .
initMap() {
    window.initMap = () => {
      this.fetchRestaurantFromURL((error, restaurant) => {
        if (error) { 
          console.error(error);
        } else {
          map = new google.maps.Map(document.getElementById('map'), {
            zoom: 16,
            center: restaurant.latlng,
            scrollwheel: false
          });
          this.fillBreadcrumb();
          DBHelper.mapMarkerForRestaurant(this.restaurant, map);
        }
      });
    }
  }
initMap ( ) { window . initMap = ( ) => { this . fetchRestaurantFromURL ( ( error , restaurant ) => { if ( error ) { console . error ( error ) ; } else { map = new google . maps . Map ( document . getElementById ( 'map' ) , { zoom : 16 , center : restaurant . latlng , scrollwheel : false } ) ; this . fillBreadcrumb ( ) ; DBHelper . mapMarkerForRestaurant ( this . restaurant , map ) ; } } ) ; } }
Initialize Google map, called from HTML.
Initialize Google map called from HTML .
// Got an error!