bruce-models 0.8.2 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3716,10 +3716,6 @@
3716
3716
  }
3717
3717
  return 1.5;
3718
3718
  }
3719
- function getCell(cells, cellSize, lon, maxLon, lat, maxLat) {
3720
- var id = cellSize + "_" + lon + "_" + maxLon + "_" + lat + "_" + maxLat;
3721
- return cells[id];
3722
- }
3723
3719
  function isCellFetched(cell) {
3724
3720
  if (cell.Fetched) {
3725
3721
  return true;
@@ -3728,9 +3724,9 @@
3728
3724
  }
3729
3725
  function getOrCreateCell(cells, cellSize, lon, maxLon, lat, maxLat) {
3730
3726
  var id = cellSize + "_" + lon + "_" + maxLon + "_" + lat + "_" + maxLat;
3731
- var cell = getCell(cells, cellSize, lon, maxLon, lat, maxLat);
3727
+ var cell = cells[id];
3732
3728
  if (!cell) {
3733
- cell = new Cell();
3729
+ cell = cells[id] = new Cell();
3734
3730
  cell.Boundaries = {
3735
3731
  minLatitude: lat,
3736
3732
  maxLatitude: maxLat,
@@ -3745,6 +3741,7 @@
3745
3741
  var Grid = /** @class */ (function () {
3746
3742
  function Grid() {
3747
3743
  this.cells = {};
3744
+ this.patches = [];
3748
3745
  }
3749
3746
  Grid.prototype.GetCellsForView = function (viewRect) {
3750
3747
  var _this = this;