Keep cable pick info and the prewarm flag off Cesium objects

Submarine cables wrote each pick's info both to a per-load WeakMap and to a
__gevTeleGeography expando, always together; one cablePicks store replaces
both and resolves the same objects. The voice view-target prewarm marks its
viewer in a WeakSet instead of a __gevViewTargetPrewarmInstalled property.
This commit is contained in:
Sameh Khamis committed 2026-11-03 10:01:12 -08:00
1 parent 04a70d59e9
commit 7ebc73393a
9 files changed
+31 -23

No files matched your search

+2 -3
View File
@@ -10,6 +10,7 @@ import {
selectCableReferenceLabelWinners,
cableReferencePriority,
} from './overlay.js';
import { cablePicks } from './pickState.js';
export function createRendering({ state }) {
function resetPublishSignature() {
@@ -40,7 +41,6 @@ export function createRendering({ state }) {
state._referenceDataSource = null;
state._referenceRecords = [];
state._surfaceRecords = [];
state._pickByEntity = new WeakMap();
state._referenceLabelCount = 0;
state._publishScratch.length = 0;
// The blend pass targets the collections being dropped; the rebuilt
@@ -180,8 +180,7 @@ export function createRendering({ state }) {
},
});
entity.__gevTeleGeography = info;
state._pickByEntity.set(entity, info);
cablePicks.write(entity).info = info;
const record = {
id: entity.id,
entity,