Skip to content

Commit

Permalink
geosolutions-it#9313 Error when 3D Tiles layer are not visible (geoso…
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap authored Aug 21, 2023
1 parent 08f633f commit 414f295
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/client/components/map/cesium/__tests__/Layer-test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,8 @@ describe('Cesium layer', () => {
/>, document.getElementById('container'));
expect(cmp).toBeTruthy();
expect(cmp.layer).toBeTruthy();
expect(cmp.layer.getTileSet).toBeFalsy();
expect(cmp.layer.getTileSet).toBeTruthy();
expect(cmp.layer.getTileSet()).toBe(undefined);
});
it('should create a 3d tiles layer with and offset applied to the height', (done) => {
const options = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ Layers.registerType('3dtiles', {
}
return {
detached: true,
getTileSet: () => undefined,
remove: () => {},
setVisible: () => {}
};
Expand Down

0 comments on commit 414f295

Please sign in to comment.