fix(earthquakes, cyclones): an item that goes takes its double-click follow with it

Removing a followed entity ended the default renderer's follow. A disc gone
from the feed, or a storm point gone from the advisory (or a cleared one),
now ends it too.
This commit is contained in:
Sameh Khamis committed 2026-11-14 01:17:08 -08:00
1 parent def2e1ecca
commit fbc40ef3b6
6 files changed
+46 -2

No files matched your search

+7
View File
@@ -269,6 +269,13 @@ export function createCycloneRendering({ viewer, overlayHost }) {
const at = place.at;
return { key: `${hit.set}:${hit.id}`, position: () => ({ ...at }) };
},
/** Whether the item a follow's key (`<set>:<item>`) names is drawn now. */
drawsFollowKey(key) {
for (const set of setIds)
if (key.startsWith(`${set}:`))
return committed && itemPlaces.has(key.slice(set.length + 1));
return false;
},
getFocusSphere(id) {
return spheres.get(id) || null;
},