@masterportal/masterportalapi 2.41.0 → 2.42.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 +16 -0
- package/jest.config.js +1 -1
- package/package.json +5 -5
- package/src/layer/wmts.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,22 @@
|
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
+
## 2.42.0 - 2024-11-27
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- The following packages have been updated:
|
|
25
|
+
- dependencies:
|
|
26
|
+
- ol: 9.2.4 to 10.2.1
|
|
27
|
+
- ol-mapbox-style: 12.2.1 to 12.3.5
|
|
28
|
+
- olcs: 2.20.0 to 2.22.1
|
|
29
|
+
- peerDependencies:
|
|
30
|
+
- cesium/engine: 9.2.0 to 12.0.1
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
- Issue #1275: Layers without capabilitiesURL are now working.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
21
37
|
## 2.41.0 - 2024-11-05
|
|
22
38
|
|
|
23
39
|
### Fixed
|
package/jest.config.js
CHANGED
|
@@ -6,7 +6,7 @@ module.exports = {
|
|
|
6
6
|
/** ol prints errors without HTMLCanvasElement being available in test environment */
|
|
7
7
|
"setupFiles": ["jest-canvas-mock"],
|
|
8
8
|
/** node_modules are usually ignored by babel-jest, but ol is published in ES6 */
|
|
9
|
-
"transformIgnorePatterns": ["/node_modules/(?!(ol|olcs|ol-mapbox-style|geotiff|quick-lru|color-space|color-rgba|color-parse)/).*/"],
|
|
9
|
+
"transformIgnorePatterns": ["/node_modules/(?!(ol|olcs|ol-mapbox-style|geotiff|quick-lru|color-space|color-rgba|color-parse|color-name|rbush|quickselect|earcut|pbf)/).*/"],
|
|
10
10
|
/** only consider files in src/ for coverage */
|
|
11
11
|
"collectCoverageFrom": ["src/**/*.js"],
|
|
12
12
|
/** coverage reporters */
|
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.42.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Basic functions of the Masterportal as api",
|
|
7
7
|
"repository": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"core-js": "^3.33.1",
|
|
23
23
|
"dayjs": "^1.11.10",
|
|
24
|
-
"ol": "
|
|
25
|
-
"ol-mapbox-style": "12.
|
|
26
|
-
"olcs": "2.
|
|
24
|
+
"ol": "^10.2.1",
|
|
25
|
+
"ol-mapbox-style": "^12.3.5",
|
|
26
|
+
"olcs": "^2.22.1",
|
|
27
27
|
"proj4": "^2.10.0",
|
|
28
28
|
"xml2js": "^0.6.2"
|
|
29
29
|
},
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"util": "^0.12.5"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@cesium/engine": "^
|
|
59
|
+
"@cesium/engine": "^12.0.1"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": "^16.13.2 || ^18.12.0 || ^20.12.2",
|
package/src/layer/wmts.js
CHANGED
|
@@ -186,7 +186,7 @@ function createLayer (rawLayer, layerParams = {}) {
|
|
|
186
186
|
infoFormat: rawLayer.infoFormat
|
|
187
187
|
}, layerParams));
|
|
188
188
|
|
|
189
|
-
if (rawLayer.optionsFromCapabilities === undefined) {
|
|
189
|
+
if (rawLayer.optionsFromCapabilities === undefined || !rawLayer.capabilitiesUrl) {
|
|
190
190
|
createLayerSourceByDefinitions(rawLayer, tileLayer);
|
|
191
191
|
}
|
|
192
192
|
else {
|