ngDoCheck()

in src/app/map/map.component.ts [117:129]


  ngDoCheck() {
    let changes = this._iterableDiffer.diff(this._rows);
    if (changes) {
      this._numChanges++;
      if (this._numChanges >= this._batchSize) {
        this.updateFeatures();
        this.updateStyles();
        this._numChanges = 0;
        // Increase the batch size incrementally to keep the overhead low.
        this._batchSize = this._batchSize * 1.5;
      }
    }
  }