Skip to content

Commit

Permalink
chore(deps): upgrade OL to 10.2.0 (#1263)
Browse files Browse the repository at this point in the history
* bump OL to 10.2.0

* resolve test as first tile successfully finished loading

---------

Co-authored-by: RobertOrthofer <[email protected]>
  • Loading branch information
lubojr and RobertOrthofer authored Sep 23, 2024
1 parent 47f7f5c commit a241bd3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion elements/map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"dependencies": {
"lit": "^3.0.2",
"ol": "^10.0.0",
"ol": "^10.2.0",
"ol-stac": "^1.0.0-beta.10",
"proj4": "^2.9.2"
},
Expand Down
18 changes: 10 additions & 8 deletions elements/map/test/wmtsCapabilities.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ describe("WMTS Capabilities Source", () => {

cy.get("eox-map").should(($el) => {
const eoxMap = <EOxMap>$el[0];
const layer = eoxMap.getLayerById("wmtsLayer");
layer.once("postrender", (e) => {
expect(e.target.getSource().getState()).to.be.equal("ready");
expect(e.target.getSource().tileCache.count_).to.be.greaterThan(
0
);
resolve();
});
const source = eoxMap
.getLayerById("wmtsLayer")
.getSource() as import("ol/source/Tile").default;
source.once(
"tileloadend",
(e: import("ol/source/Tile").TileSourceEvent) => {
expect(e.tile.getState()).to.be.equal(2);
resolve();
}
);
});
}
);
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a241bd3

Please sign in to comment.