bruce-cesium 3.3.4 → 3.3.6

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.
@@ -9740,7 +9740,7 @@
9740
9740
  case 4:
9741
9741
  setTimeout(function () {
9742
9742
  _this.runningQueues -= 1;
9743
- if (rerun) {
9743
+ if (rerun || _this.recordLoadQueue.length > 0) {
9744
9744
  _this.processQueue();
9745
9745
  }
9746
9746
  }, BATCH_DELAY);
@@ -9800,31 +9800,29 @@
9800
9800
  styleMapping = [];
9801
9801
  }
9802
9802
  this.styleMapping = styleMapping;
9803
- // It is default style.
9804
- // We have to get all possible entity type ids and append them to mapping.
9805
- if (!fallbackStyleId) {
9806
- try {
9807
- modelTree = (_b = (_a = this.cTileset) === null || _a === void 0 ? void 0 : _a.extensions) === null || _b === void 0 ? void 0 : _b.modelTree;
9808
- if (modelTree) {
9809
- entityTypeIds = this.getEntityTypeIdsFromModelTree(modelTree);
9810
- _loop_2 = function (i) {
9811
- var entityTypeId = entityTypeIds[i];
9812
- if (styleMapping.findIndex(function (x) { return x.EntityTypeID == entityTypeId; }) <= -1) {
9813
- styleMapping.push({
9814
- EntityTypeID: entityTypeId,
9815
- StyleID: null,
9816
- style: null
9817
- });
9818
- }
9819
- };
9820
- for (i = 0; i < entityTypeIds.length; i++) {
9821
- _loop_2(i);
9803
+ // Append all found entity-types.
9804
+ // That way we can mark them as loaded instead of just the ones in the style mapping.
9805
+ try {
9806
+ modelTree = (_b = (_a = this.cTileset) === null || _a === void 0 ? void 0 : _a.extensions) === null || _b === void 0 ? void 0 : _b.modelTree;
9807
+ if (modelTree) {
9808
+ entityTypeIds = this.getEntityTypeIdsFromModelTree(modelTree);
9809
+ _loop_2 = function (i) {
9810
+ var entityTypeId = entityTypeIds[i];
9811
+ if (styleMapping.findIndex(function (x) { return x.EntityTypeID == entityTypeId; }) <= -1) {
9812
+ styleMapping.push({
9813
+ EntityTypeID: entityTypeId,
9814
+ StyleID: null,
9815
+ style: null
9816
+ });
9822
9817
  }
9818
+ };
9819
+ for (i = 0; i < entityTypeIds.length; i++) {
9820
+ _loop_2(i);
9823
9821
  }
9824
9822
  }
9825
- catch (e) {
9826
- console.error(e);
9827
- }
9823
+ }
9824
+ catch (e) {
9825
+ console.error(e);
9828
9826
  }
9829
9827
  i = 0;
9830
9828
  _c.label = 5;
@@ -9834,7 +9832,7 @@
9834
9832
  return [3 /*break*/, 15];
9835
9833
  }
9836
9834
  styleMap = styleMapping[i];
9837
- if (!(!styleMap.style && styleMap.StyleID > 0)) return [3 /*break*/, 13];
9835
+ if (!(!styleMap.style && styleMap.StyleID != -1)) return [3 /*break*/, 13];
9838
9836
  styleId = styleMap.StyleID;
9839
9837
  if (!!styleId) return [3 /*break*/, 9];
9840
9838
  _c.label = 6;
@@ -9873,11 +9871,9 @@
9873
9871
  console.error(e_3);
9874
9872
  return [3 /*break*/, 13];
9875
9873
  case 13:
9876
- if (styleMap.EntityTypeID && styleMap.style) {
9877
- this.styleMappingsLoaded[styleMap.EntityTypeID] = true;
9878
- this.processTilesetFeatureCheckQueue();
9879
- this.processQueue();
9880
- }
9874
+ this.styleMappingsLoaded[styleMap.EntityTypeID] = true;
9875
+ this.processTilesetFeatureCheckQueue();
9876
+ this.processQueue();
9881
9877
  _c.label = 14;
9882
9878
  case 14:
9883
9879
  i++;
@@ -19978,7 +19974,7 @@
19978
19974
  CesiumViewMonitor.Monitor = Monitor;
19979
19975
  })(exports.CesiumViewMonitor || (exports.CesiumViewMonitor = {}));
19980
19976
 
19981
- var VERSION$1 = "3.3.4";
19977
+ var VERSION$1 = "3.3.6";
19982
19978
 
19983
19979
  exports.VERSION = VERSION$1;
19984
19980
  exports.CesiumParabola = CesiumParabola;