@opengeoweb/webmap 20.2.0-nightly-20261021 → 20.2.0-nightly-20261023
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/index.esm.js
CHANGED
|
@@ -1088,7 +1088,9 @@ var WMImage = /*#__PURE__*/function () {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
_this3._setMaxAgeFromResponseHeaders(response);
|
|
1090
1090
|
response.blob().then(function (imageBlob) {
|
|
1091
|
-
_this3.
|
|
1091
|
+
_this3._revokeObjectUrl();
|
|
1092
|
+
_this3._objectUrl = URL.createObjectURL(imageBlob);
|
|
1093
|
+
_this3.el.src = _this3._objectUrl;
|
|
1092
1094
|
})["catch"](function () {
|
|
1093
1095
|
// Do not log errors, as they are not very useful and can better be inspected via the network console
|
|
1094
1096
|
_this3._loadEvent(true);
|
|
@@ -1149,8 +1151,12 @@ var WMImage = /*#__PURE__*/function () {
|
|
|
1149
1151
|
this._resolveAll();
|
|
1150
1152
|
(_this$loadEventCallba = this.loadEventCallback) == null || _this$loadEventCallba.call(this, this);
|
|
1151
1153
|
// Free up memory
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
+
this._revokeObjectUrl();
|
|
1155
|
+
};
|
|
1156
|
+
_proto._revokeObjectUrl = function _revokeObjectUrl() {
|
|
1157
|
+
if (this._objectUrl) {
|
|
1158
|
+
URL.revokeObjectURL(this._objectUrl);
|
|
1159
|
+
this._objectUrl = undefined;
|
|
1154
1160
|
}
|
|
1155
1161
|
};
|
|
1156
1162
|
_proto.getLoadDuration = function getLoadDuration() {
|
|
@@ -38,6 +38,7 @@ export default class WMImage {
|
|
|
38
38
|
_loadDuration?: number;
|
|
39
39
|
_maxAgeSeconds?: number | null;
|
|
40
40
|
_loadedAtTime?: number;
|
|
41
|
+
_objectUrl?: string;
|
|
41
42
|
_resolveList: ((i: WMImage) => void)[];
|
|
42
43
|
geoReference: WMGeoReference | null;
|
|
43
44
|
hashUrl: string | undefined;
|
|
@@ -105,6 +106,7 @@ export default class WMImage {
|
|
|
105
106
|
_getImageWithHeaders(url: string, headers: WMHeader[]): void;
|
|
106
107
|
_load(): void;
|
|
107
108
|
_loadEvent(hasError: boolean): void;
|
|
109
|
+
private _revokeObjectUrl;
|
|
108
110
|
getLoadDuration(): number | undefined;
|
|
109
111
|
/**
|
|
110
112
|
* Get the width of the current image
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap",
|
|
3
|
-
"version": "20.2.0-nightly-
|
|
3
|
+
"version": "20.2.0-nightly-20261023",
|
|
4
4
|
"description": "GeoWeb webmap library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@opengeoweb/shared": "20.2.0-nightly-
|
|
24
|
-
"@opengeoweb/authentication": "20.2.0-nightly-
|
|
23
|
+
"@opengeoweb/shared": "20.2.0-nightly-20261023",
|
|
24
|
+
"@opengeoweb/authentication": "20.2.0-nightly-20261023",
|
|
25
25
|
"@tanstack/query-core": "^5.69.2",
|
|
26
26
|
"lodash": "^4.18.1",
|
|
27
27
|
"i18next": "^25.0.1",
|