src/leaflet.google.js
function createTile(coords, done) {
    let key = this._tileCoordsToKey(coords);
    // console.log('Need:', key);
    
    if ( key in this._freshTiles ) {
      let tile = this._freshTiles[ key ].pop();
      if ( !this._freshTiles[ key ].length ) {
        delete this._freshTiles[ key ];
      }
      L.Util.requestAnimFrame(done);
      // 			console.log('Got ', key, ' from _freshTiles');
      return tile;
    }
    let tileContainer = L.DomUtil.create("div");
    this._tileCallbacks[ key ] = this._tileCallbacks[ key ] || [];
    this._tileCallbacks[ key ].push(
      (function(c /* , k*/) {
        return function(imgNode) {
          let parent = imgNode.parentNode;
          if ( parent ) {
            parent.removeChild(imgNode);
            parent.removeChild = L.Util.falseFn;
            // 						imgNode.parentNode.replaceChild(L.DomUtil.create('img'), imgNode);
          }
          c.appendChild(imgNode);
          done();
          // 					console.log('Sent ', k, ' to _tileCallbacks');
        };
      })(tileContainer /* , key*/)
    );
    
    return tileContainer;
  }
function createTile(coords, done) {
    let key = this._tileCoordsToKey(coords);
    // console.log('Need:', key);
    
    if ( key in this._freshTiles ) {
      let tile = this._freshTiles[ key ].pop();
      if ( !this._freshTiles[ key ].length ) {
        delete this._freshTiles[ key ];
      }
      L.Util.requestAnimFrame(done);
      // 			console.log('Got ', key, ' from _freshTiles');
      return tile;
    }
    let tileContainer = L.DomUtil.create("div");
    this._tileCallbacks[ key ] = this._tileCallbacks[ key ] || [];
    this._tileCallbacks[ key ].push(
      (function(c /* , k*/) {
        return function(imgNode) {
          let parent = imgNode.parentNode;
          if ( parent ) {
            parent.removeChild(imgNode);
            parent.removeChild = L.Util.falseFn;
            // 						imgNode.parentNode.replaceChild(L.DomUtil.create('img'), imgNode);
          }
          c.appendChild(imgNode);
          done();
          // 					console.log('Sent ', k, ' to _tileCallbacks');
        };
      })(tileContainer /* , key*/)
    );
    
    return tileContainer;
  }
function createTile ( coords , done ) { let key = this . _tileCoordsToKey ( coords ) ; // console.log('Need:', key); if ( key in this . _freshTiles ) { let tile = this . _freshTiles [ key ] . pop ( ) ; if ( ! this . _freshTiles [ key ] . length ) { delete this . _freshTiles [ key ] ; } L . Util . requestAnimFrame ( done ) ; // 			console.log('Got ', key, ' from _freshTiles'); return tile ; } let tileContainer = L . DomUtil . create ( "div" ) ; this . _tileCallbacks [ key ] = this . _tileCallbacks [ key ] || [ ] ; this . _tileCallbacks [ key ] . push ( ( function ( c /* , k*/ ) { return function ( imgNode ) { let parent = imgNode . parentNode ; if ( parent ) { parent . removeChild ( imgNode ) ; parent . removeChild = L . Util . falseFn ; // 						imgNode.parentNode.replaceChild(L.DomUtil.create('img'), imgNode); } c . appendChild ( imgNode ) ; done ( ) ; // 					console.log('Sent ', k, ' to _tileCallbacks'); } ; } ) ( tileContainer /* , key*/ ) ) ; return tileContainer ; }
This will be used as this.createTile for 'roadmap', 'sat', 'terrain'
This will be used as this . createTile for roadmap sat terrain