@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.
- package/dist/api.cjs.development.js +9 -4
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +9 -4
- package/dist/api.esm.js.map +1 -1
- package/dist/layers/EvergisDynamicLayer.d.ts +3 -3
- package/dist/services/Notification.d.ts +2 -1
- package/package.json +2 -2
|
@@ -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
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
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
|
}]);
|