bruce-cesium 0.2.3 → 0.2.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.
@@ -1394,17 +1394,18 @@
1394
1394
  configurable: true
1395
1395
  });
1396
1396
  Manager.prototype.Init = function () {
1397
+ var _a;
1397
1398
  return __awaiter(this, void 0, void 0, function () {
1398
1399
  var api, minMax;
1399
1400
  var _this = this;
1400
- return __generator(this, function (_a) {
1401
+ return __generator(this, function (_b) {
1401
1402
  if (this.disposed) {
1402
1403
  throw (new Error("This item is disposed."));
1403
1404
  }
1404
1405
  api = this.apiGetter.getApi(this.apiGetter.accountId, this.apiGetter.env);
1405
1406
  this.getter = this.sharedGetters.GetOrCreateFilterGetter({
1406
1407
  api: api,
1407
- attrFilter: {},
1408
+ attrFilter: (_a = this.item.BruceEntity.Filter) !== null && _a !== void 0 ? _a : {},
1408
1409
  batchSize: 500,
1409
1410
  typeId: this.item.BruceEntity["EntityType.ID"]
1410
1411
  });
@@ -3115,7 +3116,8 @@
3115
3116
  case 0:
3116
3117
  item = {
3117
3118
  BruceEntity: {
3118
- "EntityType.ID": filter.entityTypeId
3119
+ "EntityType.ID": filter.entityTypeId,
3120
+ Filter: filter
3119
3121
  },
3120
3122
  Type: bruceModels.MenuItem.EType.Entities,
3121
3123
  Caption: "Rendering Filtered Entities",
@@ -3984,6 +3986,11 @@
3984
3986
  else if (entity.point || entity.billboard) {
3985
3987
  this.items = MPoint.Render(this.container, this.viewer, entity);
3986
3988
  }
3989
+ // TODO:
3990
+ // - Polygon measurement.
3991
+ // - Polygon that is an angle measurement?
3992
+ // We'll need params for the addon that dictate what measurements we want to see.
3993
+ // Eg: I care about "length", "area" but not "angle" measurements in polygons.
3987
3994
  }
3988
3995
  };
3989
3996
  MeasureAddon.prototype.Render = function (visuals) {