fix(fires): keep retained heat hidden when reenabling an empty filter

Add a lifecycle regression and register it in the format scope.
This commit is contained in:
Adrian Sbardella committed 2026-11-03 21:06:56 -03:00
1 parent dda9a48e5b
commit 37e751f1e3
4 files changed
+49 -1

No files matched your search

+2 -1
View File
@@ -54,7 +54,8 @@ export function createLifecycle({
layerState._billboards.show = true;
}
overlayHost.setVisible(FIRMS_OVERLAY_SOURCE_ID, true);
layerState._heatImagery?.setShow(true);
// A filter can leave an old raster cached while the current set is empty.
layerState._heatImagery?.setShow(layerState._fires.length > 0);
// The camera can have crossed the hand-off while the layer was off.
components.rendering.applyHandoffFade(true);
components.viewport.installLodWatcher();