@evergis/api 3.0.112 → 3.0.114

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.
@@ -3541,6 +3541,7 @@ function isString(v) {
3541
3541
  (function (DependencyType) {
3542
3542
  DependencyType["Layer"] = "Layer";
3543
3543
  DependencyType["Table"] = "Table";
3544
+ DependencyType["Project"] = "Project";
3544
3545
  })(exports.DependencyType || (exports.DependencyType = {}));
3545
3546
 
3546
3547
  let Resources = /*#__PURE__*/function () {
@@ -6113,6 +6114,10 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6113
6114
  urlPath: this.urlPath
6114
6115
  });
6115
6116
  }
6117
+
6118
+ await this.notification.subscribe("service_update"
6119
+ /* ServiceUpdate */
6120
+ );
6116
6121
  } catch (e) {
6117
6122
  throw errorHandler(e);
6118
6123
  }
@@ -6304,12 +6309,13 @@ let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
6304
6309
  }, {
6305
6310
  key: "subscribeRedraw",
6306
6311
  value: function subscribeRedraw() {
6307
- const tag = "service_update_" + this.name.replace(/\//g, '_');
6308
- this.api.notification.subscribe(tag).then(() => {
6309
- this.api.notification.on(tag, () => {
6312
+ this.api.notification.on("service_update"
6313
+ /* ServiceUpdate */
6314
+ , e => {
6315
+ if ((e == null ? void 0 : e.data.layerName) === this.name) {
6310
6316
  this.forceUpdate();
6311
6317
  this.redraw();
6312
- });
6318
+ }
6313
6319
  });
6314
6320
  }
6315
6321
  }]);