bruce-cesium 0.8.0 → 0.8.2

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.
@@ -1510,6 +1510,8 @@ var EntityRenderEngine;
1510
1510
  position: pos,
1511
1511
  show: false
1512
1512
  });
1513
+ var model = cEntity.model;
1514
+ model._clientFileId = params.lodClientFileId;
1513
1515
  params.viewer.entities.add(cEntity);
1514
1516
  return cEntity;
1515
1517
  }
@@ -1599,7 +1601,8 @@ var EntityRenderEngine;
1599
1601
  style: mStyle,
1600
1602
  tags: tags,
1601
1603
  viewer: params.viewer,
1602
- lodUrl: ClientFile.GetUrl(api, lod.clientFileId)
1604
+ lodUrl: ClientFile.GetUrl(api, lod.clientFileId),
1605
+ lodClientFileId: lod.clientFileId
1603
1606
  });
1604
1607
  if (cEntity) {
1605
1608
  cEntity._renderGroup = getRenderGroupId(zoomItem);
@@ -2452,7 +2455,7 @@ var VisualsRegister;
2452
2455
  *
2453
2456
  * @param entityId
2454
2457
  * @param menuItemId if not supplied it will affect all menu items.
2455
- * @param _doUpdate
2458
+ * @param _doUpdate if menu item id is not supplied, then this will be ignored.
2456
2459
  * @returns
2457
2460
  */
2458
2461
  Register.prototype.Remove = function (entityId, menuItemId, _doUpdate) {
@@ -2474,7 +2477,7 @@ var VisualsRegister;
2474
2477
  (_a = this_1.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger({ rego: rego, isAdding: false });
2475
2478
  removeEntity(this_1.viewer, rego.visual);
2476
2479
  this_1.rego[entityId] = entityRegos.filter(function (r) { return r.menuItemId !== menuItemId_1; });
2477
- if (_doUpdate) {
2480
+ if (_doUpdate && menuItemId_1) {
2478
2481
  updateEntity(this_1.viewer, entityId, this_1);
2479
2482
  }
2480
2483
  };