fix(voice): the in-view scan sees News reports and Wildlife Sightings again

Voice's in-view scan projects each context record's targetPosition. News
and Wildlife Sightings still set only the entity's base position, so both
dropped out of "what am I looking at". They now pass it as targetPosition,
as GeoJSON and FIRMS do.
This commit is contained in:
Sameh Khamis committed 2026-11-14 00:23:36 -08:00
1 parent ea3b87805a
commit 14e406002c
4 files changed
+32 -1

No files matched your search

+2
View File
@@ -909,6 +909,8 @@ export function createNewsLayer({
);
entity.__localBaseCartesian = fromDegrees(lon, lat);
registerEntityContext(entity, {
// Where voice's in-view scan projects it.
targetPosition: entity.__localBaseCartesian,
id: `news-report:${report.id}`,
layerId: NEWS_LAYER_ID,
layerName: 'News',