@masterportal/masterportalapi 2.56.0 → 2.57.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,20 @@
|
|
|
3
3
|
|
|
4
4
|
The [Semantic Versioning](https://semver.org/spec/v2.0.0.html) is used.
|
|
5
5
|
|
|
6
|
+
## 2.57.0 - 2026-02-12
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- Issue #1537: The Cesium.WebMapServiceImageryProvider now uses Cesium.WebMercatorTilingScheme for rasterLayers of the type TileWMS. This prevents a bug when using singleTile = false.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
6
13
|
## 2.56.0 - 2026-01-22
|
|
7
14
|
|
|
8
15
|
### Changed
|
|
9
16
|
- Terrain-Layer: Removed `this`, uses closures instead.
|
|
10
17
|
|
|
11
18
|
### Fixed
|
|
12
|
-
- VectorStyle:
|
|
19
|
+
- VectorStyle:
|
|
13
20
|
- Fixed styling of polygons: `"zig-line-horizontal"` and `"diagonal-right"` are rotated by 90°.
|
|
14
21
|
- Creating legend and capture event ensures working on EventTarget.
|
|
15
22
|
|
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.57.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Basic functions of the Masterportal as api",
|
|
7
7
|
"repository": {
|
package/publiccode.yml
CHANGED
|
@@ -81,8 +81,8 @@ maintenance:
|
|
|
81
81
|
name: Masterportal
|
|
82
82
|
platforms:
|
|
83
83
|
- web
|
|
84
|
-
releaseDate: '2026-
|
|
84
|
+
releaseDate: '2026-02-12'
|
|
85
85
|
roadmap: 'https://bitbucket.org/geowerkstatt-hamburg/masterportalapi/src/master/'
|
|
86
86
|
softwareType: api
|
|
87
|
-
softwareVersion: 2.
|
|
87
|
+
softwareVersion: 2.57.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 (
|
|
215
|
-
|
|
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
|
}
|