@evergis/api 3.0.112 → 3.0.113

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.
@@ -6113,6 +6113,10 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6113
6113
  urlPath: this.urlPath
6114
6114
  });
6115
6115
  }
6116
+
6117
+ await this.notification.subscribe("service_update"
6118
+ /* ServiceUpdate */
6119
+ );
6116
6120
  } catch (e) {
6117
6121
  throw errorHandler(e);
6118
6122
  }
@@ -6304,12 +6308,13 @@ let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
6304
6308
  }, {
6305
6309
  key: "subscribeRedraw",
6306
6310
  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, () => {
6311
+ this.api.notification.on("service_update"
6312
+ /* ServiceUpdate */
6313
+ , e => {
6314
+ if ((e == null ? void 0 : e.data.layerName) === this.name) {
6310
6315
  this.forceUpdate();
6311
6316
  this.redraw();
6312
- });
6317
+ }
6313
6318
  });
6314
6319
  }
6315
6320
  }]);