@masterportal/masterportalapi 2.32.0 → 2.33.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
CHANGED
|
@@ -3,7 +3,28 @@
|
|
|
3
3
|
|
|
4
4
|
The [Semantic Versioning](https://semver.org/spec/v2.0.0.html) is used.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## Unreleased - in development
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
### Changed
|
|
10
|
+
### Deprecated
|
|
11
|
+
### Removed
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 2.33.0 - 2024-02-07
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
- createStyle: setting style to feature is limited to Point and MultiPoint geometries.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- 3D: the options are set correctly again for terrain.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## 2.32.0 - 2024-01-17
|
|
7
28
|
### Added
|
|
8
29
|
|
|
9
30
|
### Changed
|
|
@@ -15,31 +36,31 @@
|
|
|
15
36
|
|
|
16
37
|
---
|
|
17
38
|
|
|
18
|
-
|
|
19
|
-
|
|
39
|
+
## 2.31.0 - 2023-12-13
|
|
40
|
+
### Added
|
|
20
41
|
- Added support for Node LTS version ^20.9.0 and npm Version ^10.1.0.
|
|
21
42
|
|
|
22
|
-
|
|
43
|
+
### Changed
|
|
23
44
|
- WMS-Layer: the attribute extent of rawlayer is set at ol-layer.
|
|
24
45
|
|
|
25
|
-
|
|
46
|
+
### Fixed
|
|
26
47
|
- OAF-Layer: fix oaf layer in examples
|
|
27
48
|
|
|
28
49
|
---
|
|
29
50
|
|
|
30
|
-
|
|
31
|
-
|
|
51
|
+
## 2.30.0 - 2023-11-28
|
|
52
|
+
### Changed
|
|
32
53
|
- WMS-Layer and WMTS-Layer: create Layer no longer evaluates the minScale and maxScale attributes, but instead minResolution and maxResolution can be transferred.
|
|
33
54
|
|
|
34
|
-
|
|
55
|
+
### Fixed
|
|
35
56
|
- Issue Masterportal #1052 VectorStyle: fixed blinking of initial loaded features on great amount of features with a lot of conditional styles.
|
|
36
57
|
- Issue Masterportal #1088: gfiAttibutes with type=html are not displayed if there is no value in the data.
|
|
37
58
|
- Issue Masterportal #1091: VectorStyle: read geometry type from geoserver featureTypeRequest
|
|
38
59
|
|
|
39
60
|
---
|
|
40
61
|
|
|
41
|
-
|
|
42
|
-
|
|
62
|
+
## 2.29.0 - 2023-10-27
|
|
63
|
+
### Added
|
|
43
64
|
- The following packages from parcel automatic were installed for node builtin:
|
|
44
65
|
- dependencies:
|
|
45
66
|
- assert": 2.1.0,
|
|
@@ -52,7 +73,7 @@
|
|
|
52
73
|
- dependencies:
|
|
53
74
|
- ol-mapbox-style: 12.0.0
|
|
54
75
|
|
|
55
|
-
|
|
76
|
+
### Changed
|
|
56
77
|
- The following packages have been updated:
|
|
57
78
|
- dependencies:
|
|
58
79
|
- core-js: 3.32.0 to 3.33.1
|
|
@@ -72,35 +93,35 @@
|
|
|
72
93
|
- sass: 1.64.2 to 1.69.4
|
|
73
94
|
- Revert Cesium.Cesium3DTileset.fromUrl(url, options) adaptions in tileset.js for Cesium v1.107 deprecated warnings
|
|
74
95
|
|
|
75
|
-
|
|
96
|
+
### Fixed
|
|
76
97
|
- styleList: styles of type oaf are now also added to the stylelist
|
|
77
98
|
- Issue Masterportal #1052 VectorStyle: path to an icon in the map or in the legend in style.json may be an icon name, a relative path to icon, a complete url or an svg.
|
|
78
99
|
|
|
79
100
|
---
|
|
80
101
|
|
|
81
|
-
|
|
82
|
-
|
|
102
|
+
## 2.28.0 - 2023-09-27
|
|
103
|
+
### Added
|
|
83
104
|
- GfiAttributes: GFI Attributes can now be configured as HTML tags, e.g <a>, <img> or <iframe>
|
|
84
105
|
|
|
85
|
-
|
|
106
|
+
### Changed
|
|
86
107
|
- The following packages have been updated:
|
|
87
108
|
- dependencies:
|
|
88
109
|
- ol: 7.5.1 to 7.5.2 (This version fix a bug for vectorTiles with declutter: true)
|
|
89
|
-
|
|
110
|
+
### Fixed
|
|
90
111
|
- Issue Masterportal #1067 VectorStyle: if there is a ? in the services URL, no further one is added
|
|
91
112
|
- Cesium tileset: set visibility and set opacity was fixed.
|
|
92
113
|
- Webgl: set default style for feature and fix the opacity problem
|
|
93
114
|
|
|
94
115
|
---
|
|
95
116
|
|
|
96
|
-
|
|
97
|
-
|
|
117
|
+
## 2.27.0 - 2023-08-31
|
|
118
|
+
### Changed
|
|
98
119
|
- VectorStyle: 'initializeStyleList' is asynchron, waits for loading finished and returns the loaded styles.
|
|
99
120
|
|
|
100
121
|
---
|
|
101
122
|
|
|
102
|
-
|
|
103
|
-
|
|
123
|
+
## 2.26.0 - 2023-08-23
|
|
124
|
+
### Changed
|
|
104
125
|
- The following packages have been updated:
|
|
105
126
|
- dependencies:
|
|
106
127
|
- ol: 7.4.0 to 7.5.1
|
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.33.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Basic functions of the Masterportal as api",
|
|
7
7
|
"repository": {
|
package/src/layer/terrain.js
CHANGED
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
* @returns {void}
|
|
7
7
|
*/
|
|
8
8
|
async function createTerrainProvider (rawLayer) {
|
|
9
|
-
const options = {}
|
|
10
|
-
|
|
9
|
+
const options = {};
|
|
10
|
+
let terrainProvider = "";
|
|
11
11
|
|
|
12
12
|
if (rawLayer.cesiumTerrainProviderOptions) {
|
|
13
13
|
Object.assign(options, rawLayer.cesiumTerrainProviderOptions);
|
|
14
14
|
}
|
|
15
|
+
terrainProvider = await Cesium.CesiumTerrainProvider.fromUrl(rawLayer.url, options);
|
|
15
16
|
|
|
16
17
|
return terrainProvider;
|
|
17
18
|
}
|
|
@@ -261,7 +261,9 @@ function createStyle (styleObject, feature, isClustered, wfsImgPathFromConfig) {
|
|
|
261
261
|
styleObjectGeometry.setText(getLabelStyle(feature, style, isClustered));
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
feature.
|
|
264
|
+
if (feature?.getGeometry().getType() === "Point" || feature?.getGeometry().getType() === "MultiPoint") {
|
|
265
|
+
feature.setStyle(styleObjectGeometry);
|
|
266
|
+
}
|
|
265
267
|
return styleObjectGeometry;
|
|
266
268
|
}
|
|
267
269
|
|
|
@@ -263,7 +263,6 @@ describe("createStyle", () => {
|
|
|
263
263
|
style.forEach(aStyle => {
|
|
264
264
|
expect(aStyle).toBeInstanceOf(Style);
|
|
265
265
|
});
|
|
266
|
-
expect(multiLineStringFeature.getStyle()).toEqual(style);
|
|
267
266
|
});
|
|
268
267
|
|
|
269
268
|
it("should return the correct style for a feature with geometry of type MultiPolygon ", () => {
|
|
@@ -297,7 +296,6 @@ describe("createStyle", () => {
|
|
|
297
296
|
style.forEach(aStyle => {
|
|
298
297
|
expect(aStyle).toBeInstanceOf(Style);
|
|
299
298
|
});
|
|
300
|
-
expect(multiPolygonFeature.getStyle()).toEqual(style);
|
|
301
299
|
});
|
|
302
300
|
|
|
303
301
|
it("should return the correct style for a feature with geometry of type GeometryCollection ", () => {
|
|
@@ -331,7 +329,6 @@ describe("createStyle", () => {
|
|
|
331
329
|
style.forEach(aStyle => {
|
|
332
330
|
expect(aStyle).toBeInstanceOf(Style);
|
|
333
331
|
});
|
|
334
|
-
expect(geometryCollectionFeature.getStyle()).toEqual(style);
|
|
335
332
|
});
|
|
336
333
|
|
|
337
334
|
it("should return the correct style for a feature with geometry of type MultiPoint ", () => {
|