<commit_before>// Based on https://github.com/shramov/leaflet-plugins
// GridLayer like https://avinmathew.com/leaflet-and-google-maps/ , but using MutationObserver instead of jQuery
var GoogleMapsLoader = require('google-maps');

GoogleMapsLoader.VERSION = '3.18';

// 🍂class GridLayer.GoogleMutant
// 🍂extends GridLayer
L.GridLayer.GoogleMutant = L.GridLayer.extend({
  includes: L.Mixin.Events,

  options: {
    minZoom: 0,
    maxZoom: 18,
    tileSize: 256,
    subdomains: 'abc',
    errorTileUrl: '',
    attribution: '', // The mutant container will add its own attribution anyways.
    opacity: 1,
    continuousWorld: false,
    noWrap: false,
    // 🍂option type: String = 'roadmap'
    // Google's map type. Valid values are 'roadmap', 'satellite' or 'terrain'. 'hybrid' is not really supported.
    type: 'satellite',
    maxNativeZoom: 21
  },

  initialize: function (options) {
    L.GridLayer.prototype.initialize.call(this, options);
    var self = this;

    if (options.asclientid) {
      GoogleMapsLoader.CLIENT = options.googlekey;
    } else {
      GoogleMapsLoader.KEY = options.googlekey;
    }
    
    
    self._type = options.maptype || 'SATELLITE';

    GoogleMapsLoader.load(function (_google) {
      google = _google;
      console.log('I just loaded google maps api');
      self._ready = true;
      //self._initMapObject();
      // self.
      self._initMutant();
      self._update();

      //this._ready = google.maps.Map !== undefined;
      //if (!this._ready) L.Google.asyncWait.push(this);
    });


    

    // Couple data structures indexed by tile key<commit_msg>removed console log<commit_after>// Based on https://github.com/shramov/leaflet-plugins
// GridLayer like https://avinmathew.com/leaflet-and-google-maps/ , but using MutationObserver instead of jQuery
var GoogleMapsLoader = require('google-maps');

GoogleMapsLoader.VERSION = '3.18';

// 🍂class GridLayer.GoogleMutant
// 🍂extends GridLayer
L.GridLayer.GoogleMutant = L.GridLayer.extend({
  includes: L.Mixin.Events,

  options: {
    minZoom: 0,
    maxZoom: 18,
    tileSize: 256,
    subdomains: 'abc',
    errorTileUrl: '',
    attribution: '', // The mutant container will add its own attribution anyways.
    opacity: 1,
    continuousWorld: false,
    noWrap: false,
    // 🍂option type: String = 'roadmap'
    // Google's map type. Valid values are 'roadmap', 'satellite' or 'terrain'. 'hybrid' is not really supported.
    type: 'satellite',
    maxNativeZoom: 21
  },

  initialize: function (options) {
    L.GridLayer.prototype.initialize.call(this, options);
    var self = this;

    if (options.asclientid) {
      GoogleMapsLoader.CLIENT = options.googlekey;
    } else {
      GoogleMapsLoader.KEY = options.googlekey;
    }
    
    
    self._type = options.maptype || 'SATELLITE';

    GoogleMapsLoader.load(function (_google) {
      google = _google;
      self._ready = true;
      //self._initMapObject();
      // self.
      self._initMutant();
      self._update();

      //this._ready = google.maps.Map !== undefined;
      //if (!this._ready) L.Google.asyncWait.push(this);
    });


    

    // Couple data structures indexed by tile key
{'fraction_non_alphanumeric': 0.13010685103708358, 'fraction_numerical': 0.00754242614707731, 'mean_word_length': 2.8535108958837774, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3268375', 'n_tokens_mistral': 1056, 'n_tokens_neox': 990, 'n_words': 239}