Keep the radio layer's Cesium entities and picks in its rendering part

The radio interaction, selection and navigation parts had left the
Cesium allow-list but still read pick objects, toggled entity
visibility, removed the selection entity, re-ran clustering and read the
Cesium camera. Navigation now reads the camera port's pose; the rest
moves into the rendering part.
This commit is contained in:
Sameh Khamis committed 2026-11-07 01:04:46 -08:00
1 parent a8f41d30fc
commit 045267c841
7 files changed
+76 -52

No files matched your search

+2 -15
View File
@@ -57,12 +57,7 @@ export function createSelection({
}
if (changed && parts.interaction.radioPresentationAllowed()) {
parts.rendering.updateRenderVisibility();
if (filterChanged && layerState._dataSource?.clustering?.enabled) {
const clusterPoints = layerState._dataSource.clustering.clusterPoints;
layerState._dataSource.clustering.clusterPoints = !clusterPoints;
layerState._dataSource.clustering.clusterPoints = clusterPoints;
layerState._viewer?.scene?.requestRender();
}
if (filterChanged) parts.rendering.reclusterStations();
parts.rendering.scheduleRadioOverlayPublish();
}
parts.presentation.emitState();
@@ -275,15 +270,7 @@ export function createSelection({
if (clearsCancelledPresentation) parts.rendering.updateSelectionEntity();
if (changed) parts.clustering.resetRadioClusterOverlayIdentities();
parts.rendering.updateRenderVisibility();
if (changed && layerState._dataSource?.clustering?.enabled) {
// Entity visibility changes do not invalidate Cesium's existing cluster
// primitives. Toggle a public clustering input twice to mark the current
// cluster set dirty without changing its effective configuration.
const clusterPoints = layerState._dataSource.clustering.clusterPoints;
layerState._dataSource.clustering.clusterPoints = !clusterPoints;
layerState._dataSource.clustering.clusterPoints = clusterPoints;
layerState._viewer?.scene?.requestRender();
}
if (changed) parts.rendering.reclusterStations();
parts.rendering.scheduleRadioOverlayPublish();
parts.presentation.emitState();
return true;