mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Draw the Bhote Koshi locator through the renderer's ports and take it off the Cesium list
The locator's country fill, revealed border and flood path lines, and pulsing halos are now three draw sets per layer (fill under lines under halos), none of them pickable. The border and flood path are draped lines revealed with revealFraction: the old vertex-by-vertex head is turned into a fraction of the line's length (geo/polyline lengthFraction, the inverse of alongLength). The callout pulse brings what is drawn up to date each frame, upserting only the lines and halos that changed. Camera moves and flight cancels go through the camera port. The border's own frame loop only asked for renders the pulse already asks for, and is gone.
This commit is contained in:
1 parent
c145c63b4f
commit
bddb890326
6 files changed
+567
-421
No files matched your search
@@ -51,7 +51,7 @@ for (const index of [0, 1]) test(`${index ? 'dams' : 'datacenters'} introduce th
|
||||
});
|
||||
|
||||
test('Nepal locator introduces the shared OSM credit', async (t) => {
|
||||
const v = viewer(t);
|
||||
const v = viewer(t, { draw: fakeDrawPort() });
|
||||
const layer = createBhoteKoshiLocatorLayer({ boundaryResolver: async () => ({ name: 'Nepal', ring: [[80, 26], [88, 26], [88, 30], [80, 30]] }), overlayHost, requestRender: noop, scheduleFrame: () => 1, cancelFrame: noop });
|
||||
await layer.init(v); await layer.enable(v, { origin: 'scene' });
|
||||
assertCredit(v); await layer.destroy(v);
|
||||
|
||||
Reference in new issue
Block a user