fix(voice): point-and-ask over a Street Level coverage line names its sequence again

The coverage lines were one primitive per sequence, picked as the
sequence's id. Drawn in parts, a part after the first carries its own
#n id, which point-and-ask passed on. A hit whose item names the id its
parts pick as (meta.pick) resolves as that id, as the line's click
already does.
This commit is contained in:
Sameh Khamis committed 2026-11-14 01:47:20 -08:00
1 parent d2e161372c
commit 805c9b5ccd
2 files changed
+15 -1

No files matched your search

+5 -1
View File
@@ -97,7 +97,11 @@ export function resolvePickedContext(picked, { dataManager = null } = {}) {
const record = contextCarrierRecord(picked, dataManager);
if (record) return fromRecord(record);
const pickId = resolvePickId(picked);
// An item drawn in parts names the id its parts pick as (`meta.pick`:
// a Street Level sequence), as the one primitive they were picked as.
const pickId =
(typeof picked.meta?.pick === 'string' && picked.meta.pick) ||
resolvePickId(picked);
if (!pickId) return null;
const layerId = findPickOwner(pickId);
if (!layerId || IGNORED_OWNERS.has(layerId)) return null;