bruce-cesium 2.6.6 → 2.6.7

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.
@@ -5442,6 +5442,12 @@
5442
5442
  var _this = this;
5443
5443
  var _a;
5444
5444
  this.unsetGetter();
5445
+ var isTagItem = Boolean(this.item.BruceEntity.ExpandLayers);
5446
+ var tagsToRender = isTagItem ? this.item.BruceEntity.SelectedExpandLayers : null;
5447
+ if (!tagsToRender) {
5448
+ tagsToRender = [];
5449
+ }
5450
+ tagsToRender = [].concat(tagsToRender);
5445
5451
  this.getter = this.sharedGetters.GetOrCreateFilterGetter({
5446
5452
  api: this.apiGetter.getApi(),
5447
5453
  attrFilter: (_a = this.item.BruceEntity.Filter) !== null && _a !== void 0 ? _a : {},
@@ -5449,19 +5455,18 @@
5449
5455
  typeId: this.item.BruceEntity["EntityType.ID"],
5450
5456
  monitor: this.monitor,
5451
5457
  viewer: this.viewer,
5458
+ // Unfortunately this searches as an "AND" rather than "OR" which does not meet our needs here.
5459
+ // So for multiple tags we'll manually sort on UI end...
5460
+ tagIds: tagsToRender.length == 1 ? tagsToRender : [],
5452
5461
  debugShowBounds: Boolean(window === null || window === void 0 ? void 0 : window.ENTITIES_RENDER_MANAGER_SHOW_BOUNDS),
5453
5462
  cdn: this.item.cdnEnabled
5454
5463
  });
5455
5464
  var minMax = exports.RenderManager.GetZoomMinMax({
5456
5465
  zoomControl: this.item.CameraZoomSettings
5457
5466
  });
5458
- this.getter.IncludeMenuItem(this.item.id, [], minMax[0], minMax[1]);
5459
- var isTagItem = Boolean(this.item.BruceEntity.ExpandLayers);
5460
- var tagsToRender = isTagItem ? this.item.BruceEntity.SelectedExpandLayers : null;
5461
- if (!tagsToRender) {
5462
- tagsToRender = [];
5463
- }
5464
- tagsToRender = [].concat(tagsToRender);
5467
+ // Unfortunately this searches as an "AND" rather than "OR" which does not meet our needs here.
5468
+ // So for multiple tags we'll manually sort on UI end...
5469
+ this.getter.IncludeMenuItem(this.item.id, tagsToRender.length == 1 ? tagsToRender : [], minMax[0], minMax[1]);
5465
5470
  this.getterSub = this.getter.OnUpdate.Subscribe(function (entities) {
5466
5471
  if (isTagItem) {
5467
5472
  _this.distributeForRender(entities.filter(function (entity) {
@@ -7734,6 +7739,7 @@
7734
7739
  cacheKey += params.typeId;
7735
7740
  cacheKey += params.batchSize;
7736
7741
  cacheKey += String(params.cdn);
7742
+ cacheKey += JSON.stringify(params.tagIds ? params.tagIds : []);
7737
7743
  // This could potentially crash, but if it crashes here then it would crash during API request anyways.
7738
7744
  cacheKey += JSON.stringify(params.attrFilter ? params.attrFilter : {});
7739
7745
  return cacheKey;
@@ -15116,7 +15122,7 @@
15116
15122
  ViewerUtils.CreateWidgets = CreateWidgets;
15117
15123
  })(exports.ViewerUtils || (exports.ViewerUtils = {}));
15118
15124
 
15119
- var VERSION$1 = "2.6.6";
15125
+ var VERSION$1 = "2.6.7";
15120
15126
 
15121
15127
  exports.VERSION = VERSION$1;
15122
15128
  exports.CesiumViewMonitor = CesiumViewMonitor;