@masterportal/masterportalapi 2.45.0 → 2.46.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 -3
- package/package.json +3 -3
- package/src/layer/oaf.js +2 -1
- package/src/renderer/webgl.js +1 -1
- package/test/layer/oaf.test.js +16 -0
- package/test/renderer/webgl.test.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
The [Semantic Versioning](https://semver.org/spec/v2.0.0.html) is used.
|
|
5
5
|
|
|
6
6
|
## Unreleased - in development
|
|
7
|
+
|
|
7
8
|
### __Breaking Changes__
|
|
8
9
|
|
|
9
10
|
### Added
|
|
@@ -16,20 +17,32 @@
|
|
|
16
17
|
|
|
17
18
|
### Fixed
|
|
18
19
|
|
|
20
|
+
---
|
|
21
|
+
## 2.46.0 - 2025-03-10
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- The following packages have been updated:
|
|
25
|
+
- dependencies:
|
|
26
|
+
- ol: 10.2.1 to 10.4.0
|
|
27
|
+
- ol-mapbox-style: 12.3.5 to 12.4.0
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
- Issue #1339: oaf: Fix the pathname if the url ends with a slash.
|
|
31
|
+
|
|
19
32
|
---
|
|
20
33
|
|
|
21
34
|
## 2.45.0 - 2025-01-28
|
|
22
35
|
|
|
23
36
|
### Added
|
|
24
|
-
- vectorStyle:
|
|
37
|
+
- vectorStyle:
|
|
25
38
|
- extended 3d example by tileset styling
|
|
26
39
|
|
|
27
40
|
### Changed
|
|
28
|
-
- vectorStyle:
|
|
41
|
+
- vectorStyle:
|
|
29
42
|
- renamed configured style type="Cesium" to type="cesium"
|
|
30
43
|
|
|
31
44
|
### Fixed
|
|
32
|
-
- vectorStyle:
|
|
45
|
+
- vectorStyle:
|
|
33
46
|
- fixed styling for type "cesium"
|
|
34
47
|
|
|
35
48
|
---
|
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.46.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Basic functions of the Masterportal as api",
|
|
7
7
|
"repository": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"core-js": "^3.33.1",
|
|
23
23
|
"dayjs": "^1.11.10",
|
|
24
|
-
"ol": "^10.
|
|
25
|
-
"ol-mapbox-style": "
|
|
24
|
+
"ol": "^10.4.0",
|
|
25
|
+
"ol-mapbox-style": "12.4.0",
|
|
26
26
|
"olcs": "^2.22.1",
|
|
27
27
|
"proj4": "^2.10.0",
|
|
28
28
|
"xml2js": "^0.6.2"
|
package/src/layer/oaf.js
CHANGED
|
@@ -128,10 +128,11 @@ export function createUrl (rawLayer, loadingParams) {
|
|
|
128
128
|
url.pathname += "/collections/" + rawLayer.collection + "/items";
|
|
129
129
|
}
|
|
130
130
|
else {
|
|
131
|
-
url.pathname
|
|
131
|
+
url.pathname += "collections/" + rawLayer.collection + "/items";
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
}
|
|
135
|
+
|
|
135
136
|
if (typeof rawLayer.limit === "number") {
|
|
136
137
|
url.searchParams.set("limit", rawLayer.limit);
|
|
137
138
|
}
|
package/src/renderer/webgl.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import WebGLPointsLayer from "ol/layer/
|
|
1
|
+
import WebGLPointsLayer from "ol/layer/WebGLVector";
|
|
2
2
|
import WebGLVectorLayerRenderer from "ol/renderer/webgl/VectorLayer";
|
|
3
3
|
import WebGLVectorTileLayerRenderer from "ol/renderer/webgl/VectorTileLayer.js";
|
|
4
4
|
import VectorTile from "ol/layer/VectorTile.js";
|
package/test/layer/oaf.test.js
CHANGED
|
@@ -396,5 +396,21 @@ describe("oaf.js", function () {
|
|
|
396
396
|
expect(createdUrl.searchParams.get("kapitelbezeichnung")).toEqual("Gymnasien");
|
|
397
397
|
expect(createdUrl.searchParams.get("anzahl_schueler")).toEqual(">1000");
|
|
398
398
|
});
|
|
399
|
+
it("should create the correct url, if the rawLayer url ends with /", () => {
|
|
400
|
+
const rawLayer = {
|
|
401
|
+
id: "id",
|
|
402
|
+
name: "Schulen",
|
|
403
|
+
url: "https://url.de/ogcapi/datasets/",
|
|
404
|
+
collection: "staatliche_schulen",
|
|
405
|
+
typ: "OAF",
|
|
406
|
+
bbox: "0,0,10,10",
|
|
407
|
+
bboxCrs: "EPSG:4326"
|
|
408
|
+
},
|
|
409
|
+
loadingParams = undefined,
|
|
410
|
+
createdUrl = oaf.createUrl(rawLayer, loadingParams);
|
|
411
|
+
|
|
412
|
+
expect(createdUrl.origin).toEqual("https://url.de");
|
|
413
|
+
expect(createdUrl.pathname).toEqual("/ogcapi/datasets/collections/" + rawLayer.collection + "/items");
|
|
414
|
+
});
|
|
399
415
|
});
|
|
400
416
|
});
|
|
@@ -5,7 +5,7 @@ import Feature from "ol/Feature";
|
|
|
5
5
|
import Polygon from "ol/geom/Polygon";
|
|
6
6
|
import MultiPoint from "ol/geom/MultiPoint";
|
|
7
7
|
import * as webgl from "../../src/renderer/webgl";
|
|
8
|
-
import WebGLPointsLayer from "ol/layer/
|
|
8
|
+
import WebGLPointsLayer from "ol/layer/WebGLVector";
|
|
9
9
|
import Layer from "ol/layer/Layer";
|
|
10
10
|
import {returnColor} from "../../src/vectorStyle/lib/colorConvertions";
|
|
11
11
|
|