@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.
package/dist/api.esm.js CHANGED
@@ -3541,6 +3541,7 @@ var DependencyType;
3541
3541
  (function (DependencyType) {
3542
3542
  DependencyType["Layer"] = "Layer";
3543
3543
  DependencyType["Table"] = "Table";
3544
+ DependencyType["Project"] = "Project";
3544
3545
  })(DependencyType || (DependencyType = {}));
3545
3546
 
3546
3547
  let Resources = /*#__PURE__*/function () {
@@ -6118,6 +6119,10 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6118
6119
  urlPath: this.urlPath
6119
6120
  });
6120
6121
  }
6122
+
6123
+ await this.notification.subscribe("service_update"
6124
+ /* ServiceUpdate */
6125
+ );
6121
6126
  } catch (e) {
6122
6127
  throw errorHandler(e);
6123
6128
  }
@@ -6309,12 +6314,13 @@ let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
6309
6314
  }, {
6310
6315
  key: "subscribeRedraw",
6311
6316
  value: function subscribeRedraw() {
6312
- const tag = "service_update_" + this.name.replace(/\//g, '_');
6313
- this.api.notification.subscribe(tag).then(() => {
6314
- this.api.notification.on(tag, () => {
6317
+ this.api.notification.on("service_update"
6318
+ /* ServiceUpdate */
6319
+ , e => {
6320
+ if ((e == null ? void 0 : e.data.layerName) === this.name) {
6315
6321
  this.forceUpdate();
6316
6322
  this.redraw();
6317
- });
6323
+ }
6318
6324
  });
6319
6325
  }
6320
6326
  }]);