@masterportal/masterportalapi 2.35.0 → 2.36.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,15 @@
|
|
|
3
3
|
|
|
4
4
|
The [Semantic Versioning](https://semver.org/spec/v2.0.0.html) is used.
|
|
5
5
|
|
|
6
|
-
##
|
|
6
|
+
## 2.36.0 - 2024-04-11
|
|
7
7
|
|
|
8
|
-
### Added
|
|
9
8
|
### Changed
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
- The following packages have been updated:
|
|
10
|
+
- dependencies:
|
|
11
|
+
- ol: 8.2.0 to 9.1.0
|
|
12
|
+
- ol-mapbox-style: 12.0.0 to 12.2.1
|
|
13
|
+
- olcs: 2.16.0 to 2.19.3
|
|
14
|
+
- proj4: 2.9.1 to 2.10.0
|
|
13
15
|
|
|
14
16
|
---
|
|
15
17
|
|
package/jest.config.js
CHANGED
|
@@ -11,9 +11,10 @@ module.exports = {
|
|
|
11
11
|
"collectCoverageFrom": ["src/**/*.js"],
|
|
12
12
|
/** coverage reporters */
|
|
13
13
|
"coverageReporters": ["json", "lcov", "text", "clover", "cobertura"],
|
|
14
|
-
/** mapping svg to string representation since jest can't handle svg */
|
|
14
|
+
/** mapping svg to string representation since jest can't handle svg and mapping olcs paths*/
|
|
15
15
|
"moduleNameMapper": {
|
|
16
|
-
"marker.svg": "<rootDir>/public/stringMarker.js"
|
|
16
|
+
"marker.svg": "<rootDir>/public/stringMarker.js",
|
|
17
|
+
"olcs/lib/olcs/(.*)$": "<rootDir>/node_modules/olcs/lib/olcs/$1"
|
|
17
18
|
},
|
|
18
19
|
"testEnvironment": "jsdom",
|
|
19
20
|
"setupFilesAfterEnv": ["./jest.setup.js"],
|
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.36.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Basic functions of the Masterportal as api",
|
|
7
7
|
"repository": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"core-js": "^3.33.1",
|
|
23
23
|
"dayjs": "^1.11.10",
|
|
24
|
-
"ol": "
|
|
25
|
-
"ol-mapbox-style": "12.
|
|
26
|
-
"olcs": "2.
|
|
27
|
-
"proj4": "^2.
|
|
24
|
+
"ol": "9.1.0",
|
|
25
|
+
"ol-mapbox-style": "12.2.1",
|
|
26
|
+
"olcs": "2.19.3",
|
|
27
|
+
"proj4": "^2.10.0",
|
|
28
28
|
"xml2js": "^0.6.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* @module olcs.WMSRasterSynchronizer
|
|
3
3
|
*/
|
|
4
4
|
import olLayerGroup from "ol/layer/Group.js";
|
|
5
|
-
import {getUid} from "olcs/util.js";
|
|
5
|
+
import {getUid} from "olcs/lib/olcs/util.js";
|
|
6
6
|
import TileWMS from "ol/source/TileWMS.js";
|
|
7
7
|
import ImageWMS from "ol/source/ImageWMS.js";
|
|
8
8
|
import WMTS from "ol/source/WMTS.js";
|
|
9
|
-
import
|
|
10
|
-
import {extentToRectangle, tileLayerToImageryLayer, updateCesiumLayerProperties} from "olcs/core.js";
|
|
9
|
+
import AbstractSynchronizer from "olcs/lib/olcs/AbstractSynchronizer.js";
|
|
10
|
+
import {extentToRectangle, tileLayerToImageryLayer, updateCesiumLayerProperties} from "olcs/lib/olcs/core.js";
|
|
11
11
|
import {Tile, Image as ImageLayer} from "ol/layer.js";
|
|
12
12
|
import {stableSort} from "ol/array.js";
|
|
13
13
|
import {getBottomLeft, getBottomRight, getTopRight, getTopLeft} from "ol/extent.js";
|
|
@@ -18,7 +18,7 @@ import proj4 from "proj4";
|
|
|
18
18
|
/**
|
|
19
19
|
* Represents a WMSRasterSynchronizer.
|
|
20
20
|
*/
|
|
21
|
-
class WMSRasterSynchronizer extends
|
|
21
|
+
class WMSRasterSynchronizer extends AbstractSynchronizer {
|
|
22
22
|
/**
|
|
23
23
|
* This object takes care of one-directional synchronization of
|
|
24
24
|
* Openlayers WMS raster layers to the given Cesium globe. This Synchronizer
|
package/src/maps/olcs/olcsMap.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import OLCesium from "olcs
|
|
1
|
+
import OLCesium from "olcs";
|
|
2
2
|
import {transform, get} from "ol/proj.js";
|
|
3
|
-
import VectorSynchronizer from "olcs/VectorSynchronizer.js";
|
|
3
|
+
import VectorSynchronizer from "olcs/lib/olcs/VectorSynchronizer.js";
|
|
4
4
|
|
|
5
5
|
import FixedOverlaySynchronizer from "./3dUtils/fixedOverlaySynchronizer.js";
|
|
6
6
|
import WMSRasterSynchronizer from "./3dUtils/wmsRasterSynchronizer.js";
|