mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
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:
1 parent
d2e161372c
commit
805c9b5ccd
2 files changed
+15
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user