mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-23 03:32:19 +00:00
fix(library): Norway's cadastre and sea depths draw to the far edge of a tilted view again
The two dense entries (cadastre from z14, sea depths from z11) were drawn by Cesium only on globe tiles as fine as their minimum zoom, with their minimum zoom tiles filling the coarsest of those. Through the globe port they dropped the minimum level and refused every tile below it, so the far band of a tilted view, one globe level coarser, was blank. The imagery contract gains hiddenBelowMinLevel: a layer drawn nowhere the surface is coarser than its minLevel. Cesium gives such a layer minimumTerrainLevel as the library set it before (minLevel - 1 for Web Mercator tiles on the geographic globe); the entries keep their minimum level and drop the admit hook.
This commit is contained in:
1 parent
91b080a45a
commit
ecf8b31756
5 files changed
+63
-41
No files matched your search
@@ -132,6 +132,20 @@ test('the look writes through to the Cesium layer', () => {
|
||||
assert.equal(layer.lit, false);
|
||||
});
|
||||
|
||||
test('a layer hidden below its minimum level shows from the globe level as fine as it', () => {
|
||||
const { scene, port } = setup();
|
||||
port.imagery.add({
|
||||
kind: 'xyz',
|
||||
url: url('dense'),
|
||||
minLevel: 14,
|
||||
hiddenBelowMinLevel: true,
|
||||
});
|
||||
port.imagery.add({ kind: 'xyz', url: url('plain'), minLevel: 14 });
|
||||
// Web Mercator z14 is as fine as the geographic globe's level 13.
|
||||
assert.equal(scene.imageryLayers.get(0)._minimumTerrainLevel, 13);
|
||||
assert.equal(scene.imageryLayers.get(1)._minimumTerrainLevel, undefined);
|
||||
});
|
||||
|
||||
test('imagery drapes on the drawn base tileset while the globe is hidden', () => {
|
||||
const { scene, port, tick } = setup();
|
||||
const tileset = fakeTileset();
|
||||
|
||||
Reference in new issue
Block a user