@masterportal/masterportalapi 2.56.0 → 2.58.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,13 +3,28 @@
3
3
 
4
4
  The [Semantic Versioning](https://semver.org/spec/v2.0.0.html) is used.
5
5
 
6
+ ## 2.58.0 - 2026-02-19
7
+
8
+ ### Changed
9
+ - The following packages have been updated:
10
+ - dependencies:
11
+ - ol: 10.7.0 to 10.8.0
12
+ ---
13
+
14
+ ## 2.57.0 - 2026-02-12
15
+
16
+ ### Fixed
17
+ - Issue #1537: The Cesium.WebMapServiceImageryProvider now uses Cesium.WebMercatorTilingScheme for rasterLayers of the type TileWMS. This prevents a bug when using singleTile = false.
18
+
19
+ ---
20
+
6
21
  ## 2.56.0 - 2026-01-22
7
22
 
8
23
  ### Changed
9
24
  - Terrain-Layer: Removed `this`, uses closures instead.
10
25
 
11
26
  ### Fixed
12
- - VectorStyle:
27
+ - VectorStyle:
13
28
  - Fixed styling of polygons: `"zig-line-horizontal"` and `"diagonal-right"` are rotated by 90°.
14
29
  - Creating legend and capture event ensures working on EventTarget.
15
30
 
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.56.0",
4
+ "version": "2.58.0",
5
5
  "license": "MIT",
6
6
  "description": "Basic functions of the Masterportal as api",
7
7
  "repository": {
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "core-js": "^3.33.1",
36
36
  "dayjs": "^1.11.10",
37
- "ol": "^10.7.0",
37
+ "ol": "10.8.0",
38
38
  "ol-mapbox-style": "12.5.0",
39
39
  "olcs": "^2.22.1",
40
40
  "proj4": "^2.10.0",
@@ -78,7 +78,6 @@
78
78
  },
79
79
  "homepage": "https://bitbucket.org/geowerkstatt-hamburg/masterportalapi#readme",
80
80
  "directories": {
81
- "doc": "docs",
82
81
  "example": "example",
83
82
  "test": "test"
84
83
  },
package/publiccode.yml CHANGED
@@ -81,8 +81,8 @@ maintenance:
81
81
  name: Masterportal
82
82
  platforms:
83
83
  - web
84
- releaseDate: '2026-01-22'
84
+ releaseDate: '2026-02-19'
85
85
  roadmap: 'https://bitbucket.org/geowerkstatt-hamburg/masterportalapi/src/master/'
86
86
  softwareType: api
87
- softwareVersion: 2.56.0
87
+ softwareVersion: 2.58.0
88
88
  url: 'https://bitbucket.org/geowerkstatt-hamburg/masterportalapi.git'
@@ -155,7 +155,8 @@ class WMSRasterSynchronizer extends AbstractSynchronizer {
155
155
  "url": source.getUrls()[0],
156
156
  "parameters": params,
157
157
  "layers": params.LAYERS,
158
- "show": false
158
+ "show": false,
159
+ "tilingScheme": new Cesium.WebMercatorTilingScheme()
159
160
  },
160
161
  tileGrid = source.getTileGrid();
161
162
 
@@ -208,11 +208,12 @@ function captureLegendFromFeature (styleId, legendInformation) {
208
208
  else if (!legend.legendInformation.find(element => element.label === legendInformation[0].label)) {
209
209
  legend.legendInformation.push(legendInformation[0]);
210
210
 
211
- const event = new CustomEvent("legendCaptured");
211
+ const event = new CustomEvent("legendCaptured"),
212
+ globalObject = this || globalThis;
212
213
 
213
214
  event.id = legend.id;
214
- if (this instanceof EventTarget && typeof this.dispatchEvent === "function") {
215
- this.dispatchEvent(event);
215
+ if (globalObject instanceof EventTarget && typeof globalObject.dispatchEvent === "function") {
216
+ globalObject.dispatchEvent(event);
216
217
  }
217
218
  }
218
219
  }
@@ -277,8 +278,8 @@ async function returnLegendByStyleId (styleId) {
277
278
  resolve(legend);
278
279
  }
279
280
 
280
- if (this) {
281
- this.addEventListener("legendCaptured", event => {
281
+ if (this || globalThis) {
282
+ (this || globalThis).addEventListener("legendCaptured", event => {
282
283
  if (event.id === styleId && event.id !== "default") {
283
284
  resolve(legendsOfAllStyles.find(element => element.id === event.id));
284
285
  }