@masterportal/masterportalapi 2.52.0 → 2.53.0
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/CHANGELOG.md +5 -8
- package/package.json +5 -4
- package/publiccode.yml +2 -2
- package/src/layer/wms.js +10 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,18 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
The [Semantic Versioning](https://semver.org/spec/v2.0.0.html) is used.
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
### __Breaking Changes__
|
|
8
|
-
|
|
9
|
-
### Added
|
|
6
|
+
## 2.53.0 - 2025-11-18
|
|
10
7
|
|
|
11
8
|
### Changed
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Removed
|
|
9
|
+
- The following packages have been updated:
|
|
10
|
+
- dependencies:
|
|
11
|
+
- ol: 10.6.0 to 10.7.0
|
|
16
12
|
|
|
17
13
|
### Fixed
|
|
14
|
+
- Issue #1450: WMS-Layer: if fetch on load fails, the default tileLoadFunction from openlayers is used.
|
|
18
15
|
|
|
19
16
|
---
|
|
20
17
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterportal/masterportalapi",
|
|
3
3
|
"author": "Implementierungspartnerschaft Masterportal <info@masterportal.org> (https://www.masterportal.org)",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.53.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Basic functions of the Masterportal as api",
|
|
7
7
|
"repository": {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"url": "git+https://bitbucket.org/geowerkstatt-hamburg/masterportalapi.git"
|
|
10
10
|
},
|
|
11
11
|
"source": "src/index.js",
|
|
12
|
+
"main": "src/index.js",
|
|
12
13
|
"exports": {
|
|
13
14
|
".": "./src/index.js"
|
|
14
15
|
},
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"core-js": "^3.33.1",
|
|
33
34
|
"dayjs": "^1.11.10",
|
|
34
|
-
"ol": "^10.
|
|
35
|
+
"ol": "^10.7.0",
|
|
35
36
|
"ol-mapbox-style": "12.5.0",
|
|
36
37
|
"olcs": "^2.22.1",
|
|
37
38
|
"proj4": "^2.10.0",
|
|
@@ -75,11 +76,11 @@
|
|
|
75
76
|
},
|
|
76
77
|
"homepage": "https://bitbucket.org/geowerkstatt-hamburg/masterportalapi#readme",
|
|
77
78
|
"directories": {
|
|
79
|
+
"doc": "docs",
|
|
78
80
|
"example": "example",
|
|
79
81
|
"test": "test"
|
|
80
82
|
},
|
|
81
83
|
"bugs": {
|
|
82
84
|
"url": "https://bitbucket.org/geowerkstatt-hamburg/masterportalapi/issues"
|
|
83
|
-
}
|
|
84
|
-
"main": "jest.config.js"
|
|
85
|
+
}
|
|
85
86
|
}
|
package/publiccode.yml
CHANGED
|
@@ -81,8 +81,8 @@ maintenance:
|
|
|
81
81
|
name: Masterportal
|
|
82
82
|
platforms:
|
|
83
83
|
- web
|
|
84
|
-
releaseDate: '2025-
|
|
84
|
+
releaseDate: '2025-11-18'
|
|
85
85
|
roadmap: 'https://bitbucket.org/geowerkstatt-hamburg/masterportalapi/src/master/'
|
|
86
86
|
softwareType: api
|
|
87
|
-
softwareVersion: 2.
|
|
87
|
+
softwareVersion: 2.53.0
|
|
88
88
|
url: 'https://bitbucket.org/geowerkstatt-hamburg/masterportalapi.git'
|
package/src/layer/wms.js
CHANGED
|
@@ -78,15 +78,22 @@ export function makeParams (rawLayer) {
|
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Return a ol tile or image load function for the rawLayer.
|
|
81
|
+
* If fetch fails the default tile load function of openlayers is used.
|
|
81
82
|
* @param {object} rawLayer - layer specification as in services.json
|
|
82
83
|
* @returns {function} tile/image load function
|
|
83
84
|
*/
|
|
84
85
|
export function defaultLoadFunction ({isSecured}) {
|
|
85
86
|
return async (image, src) => {
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
try {
|
|
88
|
+
const response = await fetch(src, {credentials: isSecured ? "include" : "omit"}),
|
|
89
|
+
data = await response.blob();
|
|
88
90
|
|
|
89
|
-
|
|
91
|
+
image.getImage().src = URL.createObjectURL(data);
|
|
92
|
+
}
|
|
93
|
+
catch (e) {
|
|
94
|
+
console.error(e.message);
|
|
95
|
+
image.getImage().src = src;
|
|
96
|
+
}
|
|
90
97
|
};
|
|
91
98
|
}
|
|
92
99
|
|