@masterportal/masterportalapi 2.25.0 → 2.27.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
@@ -5,22 +5,40 @@
5
5
 
6
6
  ### Unreleased - in development
7
7
  ## Added
8
+ ## Changed
9
+ ## Deprecated
10
+ ## Removed
11
+ ## Fixed
8
12
 
9
- ### Changed
10
- - WebGL: method "afterLoading" catches MultiPoint geometries and parses them to a single point feature for proper rendering
11
- - WebGL Render-Pipeline for VectorLayer of type VectorTile can be called using {"renderer": "webgl"} in config.json.
13
+ ---
12
14
 
15
+ ### 2.27.0 - 2023-08-31
16
+ ## Added
13
17
  ## Changed
14
- - The styleList is now loading asynchronus
15
-
18
+ - VectorStyle: 'initializeStyleList' is asynchron, waits for loading finished and returns the loaded styles.
16
19
  ## Deprecated
17
-
18
20
  ## Removed
19
-
20
21
  ## Fixed
21
22
 
22
23
  ---
23
24
 
25
+ ### 2.26.0 - 2023-08-23
26
+ ## Changed
27
+ - The following packages have been updated:
28
+ - dependencies:
29
+ - ol: 7.4.0 to 7.5.1
30
+
31
+ ---
32
+
33
+ ## 2.25.0 - 2023-08-21
34
+
35
+ ### Changed
36
+ - WebGL: method "afterLoading" catches MultiPoint geometries and parses them to a single point feature for proper rendering
37
+ - WebGL Render-Pipeline for VectorLayer of type VectorTile can be called using {"renderer": "webgl"} in config.json.
38
+ - The styleList is now loading asynchronus
39
+
40
+ ---
41
+
24
42
  ## 2.24.0 - 2023-08-03
25
43
  ### Added
26
44
  - The following packages have been installed:
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.25.0",
4
+ "version": "2.27.0",
5
5
  "license": "MIT",
6
6
  "description": "Basic functions of the Masterportal as api",
7
7
  "repository": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "core-js": "^3.32.0",
23
23
  "dayjs": "^1.11.9",
24
- "ol": "7.4.0",
24
+ "ol": "7.5.1",
25
25
  "olcs": "^2.15.0",
26
26
  "proj4": "^2.9.0",
27
27
  "xml2js": "^0.6.2"
@@ -14,7 +14,7 @@ function createTileSet (rawLayer) {
14
14
  Object.assign(options, rawLayer.cesium3DTilesetOptions);
15
15
  }
16
16
 
17
- return Promise.resolve(Cesium.Cesium3DTileset.fromUrl(url, options));
17
+ return Promise.resolve(Cesium.Cesium3DTileset.fromUrl(url, options));
18
18
  }
19
19
 
20
20
  /**
@@ -214,9 +214,9 @@ function parseStyles (data) {
214
214
  * @param {array} [layers] - an array with the configured layers
215
215
  * @param {array} [tools] - an array with the configured tools
216
216
  * @param {function} [callback] - called with services after loaded; called with false and error on error
217
- * @returns {undefined} nothing, add callback to receive styleList
217
+ * @returns {array} the list of styles
218
218
  */
219
- function initializeStyleList (styleGetters, Config, layers, tools, callback) {
219
+ async function initializeStyleList (styleGetters, Config, layers, tools, callback) {
220
220
  configuredLayers = layers;
221
221
  configuredTools = tools;
222
222
 
@@ -230,7 +230,7 @@ function initializeStyleList (styleGetters, Config, layers, tools, callback) {
230
230
  styleConf = Config.styleConf;
231
231
  featureViaUrlLayers = Config.featureViaURL?.layers;
232
232
 
233
- fetch(styleConf)
233
+ await fetch(styleConf)
234
234
  .then(response => response.json())
235
235
  .then(data => {
236
236
  styleList = parseStyles(data);
@@ -239,6 +239,7 @@ function initializeStyleList (styleGetters, Config, layers, tools, callback) {
239
239
  console.error(error);
240
240
  callback(false, true);
241
241
  });
242
+ return styleList;
242
243
  }
243
244
 
244
245
  /**