Draw the weather and wind imagery through the renderer's globe port

Radar, satellite clouds and lightning frames are imagery layers of the
globe port instead of Cesium providers in the viewer's collection. A frame
stages as a transparent layer on the globe's surface and counts its tiles
through the layer's admit hook; the global infrared mosaic draws each tile
of the geographic grid from the decoded canvas, the regional infrared
transfer runs as the layer's tile transform on the upright tile, and
throttled tiles are fetched again by the renderer. Readiness reads the
port's imagery settling, the camera port gives the view and its move end,
and the frame's credit, which a refreshed manifest can still change in
place, is owed through the credits port while the layer is shown.
Without a host the shown frame is hidden rather than detached.

Wind's colour field is a port layer too, so the draw order is a zOrder per
product (wind, infrared, radar, lightning), above the port's other
imagery, and the raise-to-top helper goes. The Cesium port keeps a tile
transform's bitmaps in straight alpha and closes the copies it spends,
and a provider that fails to build is told as an error of its root tile.

The weather rendering and raster tile modules no longer reach Cesium and
leave the allow-list; the 3D Tiles shell still does.
This commit is contained in:
Sameh Khamis committed 2026-11-06 20:06:33 -08:00
1 parent 9e1f9a1c3d
commit 76880f6eae
15 files changed
+735 -721

No files matched your search

+13
View File
@@ -577,3 +577,16 @@ test('a scene with no globe drapes on its base tileset', () => {
port.imagery.add({ kind: 'xyz', url: url('a') });
assert.equal(tileset.imageryLayers.length, 1);
});
test('a provider that fails to build is told as an error of its root tile', async () => {
const { port } = setup();
const layer = port.imagery.add({
kind: 'single-image',
url: 'data:image/png;base64,AAAA',
});
const errors = [];
layer.on('tileError', (error) => errors.push(error));
await new Promise((resolve) => setTimeout(resolve, 50));
assert.deepEqual(errors, [{ tile: { x: 0, y: 0, level: 0 } }]);
layer.remove();
});